1194: 【C语言训练】计算t=1+1/2+1/3+...+1/n

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:64 Solved:24

Description

计算t=1+1/2+1/3+...+1/n

Input

整型变量n

Output

t(保留六位小数)

Sample Input Copy

10

Sample Output Copy

2.928968