Problem1062--【C语言训练】计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m)

1062: 【C语言训练】计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m)

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 249  Solved: 158
[Submit] [Status] [Web Board] [Creator:]

Description

计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m)

Input

整型变量m

Output

t(保留六位小数)

Sample Input Copy

10

Sample Output Copy

0.450232

Source/Category