Java Bài 3.A2: Tổng bình phương.


LÀM BÀI

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

Author:
Problem type

Tính tổng S(n) = 1^2 + 2^2 + 3^2 + 4^2 + ... + n^2.

Input Format

Số nguyên dương n.(1≤N≤10^5).

Constraints

.

Output Format

Tính S(n).

Ví dụ:

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

Comments

There are no comments at the moment.

Zalo