Java Bài 1.A9: Tính tổng 2.


LÀM BÀI

Points: 10 (partial)
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

Tính tổng sau: Sn = 1^2 + 2^2 + 3^2 + 4^2 + 5^2 + … + n^2.

Input Format

Số nguyên không âm n. ( 0 ≤ n ≤ 10^6).

Constraints

.

Output Format

Kết quả của bài toán.

Ví dụ:

Dữ liệu vào
5
Dữ liệu ra
55

Comments

There are no comments at the moment.

Zalo