Toggle navigation
万里ACM
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem1542--输出回形数组
1542: 输出回形数组
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
38
Solved:
27
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
输入正整数N(N≤9)按照回形输出整数1~N2
按照题目要求,数组中的最大值是81,因此按照%3d格式输出每个元素的值即可
Sample Input
Copy
1 2 3
Sample Output
Copy
1 1 2 4 3 1 2 3 8 9 4 7 6 5
Source/Category