The rays box

Write a program that, given three natural numbers nn, mm and cc, prints all the possible rays with beginning at the column cc in a box n×mn \times m. A ray is a vertical sequence of diagonals to the left or to the right.

Input

Input consists of three natural numbers nn, mm and cc, with n>0n > 0, m>0m > 0, and 0cm0 \le c \le m.

Output

Your program must print all the possible rays with beginning at the column cc in a box n×mn \times m of asterisks. It must print a line in white after each solution.

Information about the checker

You can print the solutions to this exercise in any order.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T11:57:57.345Z

© Jutge.org, 2006–2026.
https://jutge.org