Tính tổng 02

View as PDF

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

Nhập vào số \(n (1 \le n \le 10^9)\), tính:

\[P = 1^2 + 2^2 + 3^2 + 4^2 + \dots + n^2\]

Hãy in ra \(P\) sau khi chia lấy dư cho \(2004010501\)


Comments

There are no comments at the moment.