在 线 评 测 系 统
Toggle navigation
HNUAHE-OJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem E: 求和
Problem E: 求和
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MiB
Submit
ProblemList
Solved: 81
Submit Num: 260
Statistics
ShowOff!
Description
输入n的值,求1-1/2+1/3-1/4+...+1/n的和,结果保留5位小数
Input
n的值
Output
计算结果
Sample Input
Copy
1 2 3
Sample Output
Copy
1.00000 0.50000 0.83333