11608 - 231001_10/16_quiz1-1
|
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
Input a positive integer n, and print the n layers Christmas tree by regular amounts of * such as the sample output.
Key: You need to find out the relationship between each layer of the tree, each line of the layer, the number of the star and the number of the space before the first star.
Input
A positive integer n
Output
Output: A Christmas tree. It is not pretty clear in the sample out, please download the sample output to check an accurate tree in txt file.
Output format:
-
There is no space at the last star of each line
-
There is no space at the beginning of the last line of the tree
-
Change a new line at the end
Tags
0.0