C++-循环for-计算S=1/1-1/2+1/3-1/4+1/5-1/6...
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.
Background
Description
C++-循环for-计算S=1/1-1/2+1/3-1/4+1/5-1/6...+(-)1/n
n是需要输入
Format
Input
Output
Samples
2
0.5
10
0.645635
100
0.688172
Limitation
1s, 1024KiB for each test case.
循环for
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 8
- Start at
- 2024-4-27 17:15
- End at
- 2024-5-10 5:15
- Duration
- 300 hour(s)
- Host
- Partic.
- 9