Toggle navigation
万里ACM
F.A.Qs
Web Board
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Login
Problem j: 输出数列 1, 1/2, 1/3, 1/4...
Problem j: 输出数列 1, 1/2, 1/3, 1/4...
Time Limit:
1 Sec
Memory Limit:
128 MB
Submit:
816
Solved:
724
[
Submit
] [
Status
] [
Web Board
] [Creator:
]
Description
输入正整数N(N≤40),输出1,1/2,1/3...的前N项,每个数占一行,保留6位小数
Sample Input
Copy
10
Sample Output
Copy
1.000000 0.500000 0.333333 0.250000 0.200000 0.166667 0.142857 0.125000 0.111111 0.100000