Toggle navigation
万里ACM
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Login
Problem E: 输出数列1, -1, 1, -1, 1, -1...
Problem E: 输出数列1, -1, 1, -1, 1, -1...
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
1726
Solved:
1263
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
输入正整数N(N≤100),输出数列(-1)
i+1
中的前N项。每个数占4个位置
Sample Input
Copy
5
Sample Output
Copy
1 -1 1 -1 1