Your task is to write a program that, given three naturals
,
and
prints all the possible rays with the beginning in the column
in a box
.
A ray is a vertical sequence of diagonals to the left / or
to the right
(to write that character in C or C++, you should write
"").
The input consists of three naturals , and , with , and .
Your program must print all the possible rays with the beginning in the columns in a box of asterisks. It must print a line in white after every solution. It can print the solution in any order.
Author: Salvador Roura
Input
3 5 3
Output
******* * / * * / * */ * ******* ******* * / * * / * * \ * ******* ******* * / * * \ * * / * ******* ******* * / * * \ * * \ * ******* ******* * \ * * / * * / * ******* ******* * \ * * / * * \ * ******* ******* * \ * * \* * /* *******
Input
2 5 3
Output
******* * / * * / * ******* ******* * / * * \ * ******* ******* * \ * * / * ******* ******* * \ * * \* *******
Input
4 1 0
Output
*** *\* */* *\* */* ***