2318: Diamond
Result | TIME Limit | MEMORY Limit | Run Times | AC Times | JUDGE |
---|---|---|---|---|---|
3s | 16384K | 1526 | 571 | Standard |
Draw a diamond shape with character '*'.
Input
There are several lines in the input, each line is a integer N(N<100), N is zero means the end of input.
Output
For each line of input, draw a diamond whose width is N like sample. Notice there is no unnecessary spaces after '*' in the same line.
Output a blank line after each case.
Sample Input
3 0
Sample Output
* *** ***** *** *
Problem Source: skywind
This problem is used for contest: 51 153
Submit / Problem List / Status / Discuss