Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem2797--输出1到n加强版
2797: 输出1到n加强版
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
122
Solved:
107
[
Status
] [
Submit
] [Creator:
]
Description
输出 1 到 n,但是要求:每个数占一行,整数 i 前面有 i 个字符 '#'。
Input
一个整数 n(1 ≤ n ≤ 100)。
Output
输出 1 到 n,每个数占一行,整数 i 前面有 i 个字符 '#'。
Sample Input
Copy
6
Sample Output
Copy
#1 ##2 ###3 ####4 #####5 ######6
Source/Category