1024: 求s=1+1/2+1/3+…+1/n

Memory Limit:128 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:1032 Solved:678

Description

求s=1+1/2+1/3+…+1/n

Input

输入一个正整数n

Output

输出1+1/2+1/3+…+1/n的值,结果保留2位小数

Sample Input Copy

3

Sample Output Copy

1.83

加入题单

算法标签: