CCC '99 S3 - Divided Fractals
Submit solution
C++, Python
Points:
1
Time limit:
1.0s
Memory limit:
256M
Problem types
Allowed languages
Note that rows are numbered from bottom to top and columns from left to right.
Output Specification
Compute the figure and print the specified rectangular portion, with one line of output per row. Print the top row first, and the bottom row last. To make the output appear square, leave a single horizontal space between row elements (as is done in the examples above). Leave a blank line in the output after every test case.
Sample Input
1
3
2
10
5
27Sample Output
* * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * *
* * * * * * * * * *
* * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * *
ㅤ
Comments