biểu thức

View as PDF

Points: 100 Time limit: 1.0s Memory limit: 977M Input: stdin Output: stdout

Yêu cầu: Tính tổng S = 1^2 + 2^2 + ... + n^2.

Dữ liệu: Cho 1 số nguyên dương n (n<=10^6).

Kết quả: Tổng S.

Ví dụ
Input:

  2

Output:

  5

Comments

There are no comments at the moment.