|
Time |
Memory |
| Case 1 |
1 sec |
32 MB |
| Case 2 |
1 sec |
32 MB |
| Case 3 |
1 sec |
32 MB |
| Case 4 |
1 sec |
32 MB |
| Case 5 |
1 sec |
32 MB |
Description
Given an integer N.
Print a star diamond composed of symbol * with layer N.
Each layer has a certain number of stars (symbol *).
The middle layer is supposed to have N stars
The first layer and the last layer should contain only one stars.
For Layers above the middle layer,
each of them contains k + 2 stars, where k is the number of stars of the layer right above the current layer.
For Layers below the middle layer,
each of them contains k - 2 stars, where k is the number of stars of the layer right above the current layer.
Remember to put spaces in front of each layer to center every layer and form a diamond!
Input
There is only one line contains an integer N, represents how many layers to print.
0<N<100000
Output
Star diamond.
Detail will show in sample output.
If N is even, print "Stop drawing fake diamonds!"
Remember put "\n" at the end of each line.
Tags