Toggle navigation
万里ACM
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Login
Problem A: 输出Fibonacci数列的前N项
Problem A: 输出Fibonacci数列的前N项
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
1951
Solved:
1390
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
输入正整数N(3≤N≤40),输出Fibonacci数列的前N项,每个数占一行
Sample Input
Copy
10
Sample Output
Copy
1 1 2 3 5 8 13 21 34 55