Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem1171--综合练习---求和2
1171: 综合练习---求和2
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
442
Solved:
379
[
Status
] [
Submit
] [Creator:
]
Description
求 1/1+1/2+1/3+1/4+1/5+..+1/n的和,
结果保留3位小数
Input
输入一个正整数n
(n<=100)
Output
输出算式的结果,保留3位小数
Sample Input
Copy
10
Sample Output
Copy
2.929
Source/Category