AK. 拓展题 - 小数求和
拓展题 - 小数求和
No testdata at current.
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
编程计算sum=1+1/2+1/3+…+1/n。(其中sum保留小数点后3位)
输入输出说明
输入说明
输入一个正整数n。
输出说明
计算并输出sum的值。
题目样例
样例输入
100
样例输出
5.187
这些题都有点善
- Status
- Done
- Rule
- XCPC
- Problem
- 42
- Start at
- 2025-1-18 13:45
- End at
- 2025-3-5 20:45
- Duration
- 1111 hour(s)
- Host
- Partic.
- 17