2484: Chinese Character Art
Result | TIME Limit | MEMORY Limit | Run Times | AC Times | JUDGE |
---|---|---|---|---|---|
3s | 65536K | 1487 | 519 | Standard |
Chinese characters is a wonderful graphic. Many foreigners write Chinese characters on his T-shirt. You can draw a special Chinese characters '田' (tian) on different size now.
Input
Each line of input is a positive interger N (N<=40). The input file is terminated by N=0.
Output
For each input, you should draw graphic using character '+' with given size N. The width of your drawing is 2*N+1, and the height is 2*N+1. Just see the sample to understand the deail. Output one blank line after each symbol.
Sample Input
2 0
Sample Output
+++++ + + + +++++ + + + +++++
Problem Source: skywind
This problem is used for contest: 102
Submit / Problem List / Status / Discuss