1726: 【CSP循环】编程求1+1/2+1/3+...+1/n▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:8 Solved:7

Description

编程求 lns="http://www.w3.org/1998/Math/MathML">1+1/2+1/3++1/n 

Input

输入一行,只有一个整数 lns="http://www.w3.org/1998/Math/MathML">n(1n200) 

Output

输出只有一行(这意味着末尾有一个回车符号),包括 lns="http://www.w3.org/1998/Math/MathML">1 个实数。(保留 lns="http://www.w3.org/1998/Math/MathML">3 位小数) 。

Sample Input Copy

5

Sample Output Copy

2.283