АВТ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

1017. A114a

Time Limit: 1 seconds
Memory Limit:65536KB
Points:2
View Problem Statistics Submit Problem added Undefined

Дано натуральное число N. Вычислить сумму членов от 1-го до N-го, где каждый член равен 1/(N^2).

Input

Натуральное число N, не превышающее 100.

Output

Вещественное число, с точностью 5 знаков после запятой.

Sample

InputOutput
Пример 1. Вход:
2
Пример 1. Выход:
1.25

View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
1026. A107 1017. 1050. A114v 1033. A116a 1016. A11b
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.125 sec.
© Copyright VSTU, AVT, Nosov D.A.