Tính tổng S3


Submit solution

Points: 1 (partial)
Time limit: 1.0s
Memory limit: 542M

Problem type

Tính tổng s(n), kết quả làm tròn đến 2 chữ số thập phân:

\[s = \frac{1}{1} - \frac{1}{1^2+2^2}+,..., + \frac{(-1)^{n + 1}}{1^2+2^2+...+n^2}\]

Input 1
1
Output 1
1
Input 2
2
Output 2
0.8

Comments

There are no comments at the moment.