Problem1273--求平方和

1273: 求平方和

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 136  Solved: 107
[Status] [Submit] [Creator:]

Description

输入一个正整数n,求1到n之间所有数的平方和.

Input

一个整数N

Output

一行,包含一个整数,表示1+2*2+3*3+…+n*n的和

Sample Input Copy

5

Sample Output Copy

55

Source/Category