Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem2768--一二三四1
2768: 一二三四1
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
150
Solved:
101
[
Status
] [
Submit
] [Creator:
]
Description
按照 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, ……(即 1, 2, 3, 4 循环)的规律输出前 n 个整数。
Input
一个整数 n(1 ≤ n ≤ 1000)。
Output
按照题目要求的规律输出前 n 个整数,每个数占一行。
Sample Input
Copy
6
Sample Output
Copy
1 2 3 4 1 2
Source/Category