~/algor $ cat problems/garmonik-qator-yigindisi
Harmonic series sum
Easy
1000 ms
64 MB
25%
A positive integer $N$ is given. Compute the sum of the harmonic series:
$$S = 1 + \frac{1}{2} + \frac{1}{3} + \dots + \frac{1}{N}$$
Input
One positive integer $N$.
Output
One number — $S$, with exactly 2 digits after the decimal point (for example, 1.00).
Note
$1 \le N \le 10^{4}$
Examples
Input #1
1
Output #1
1.00
Input #2
2
Output #2
1.50