Problem N: 计算1<sup>2</sup>+2<sup>2</sup>+3<sup>2</sup>+4<sup>2</sup>+...

Problem N: 计算12+22+32+42+...

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 472  Solved: 442
[Submit] [Status] [Web Board] [Creator:]

Description

输入正整数N(N≤1500),计算12+22+32+42+...N2,并输出计算结果

Sample Input Copy

1
2
3
4
13
20

Sample Output Copy

1
5
14
30
819
2870