2980: 循环入门-计算平方和
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:6
Solved:6
Description
输入正整数n,计算1² + 2² + ... + n²。
Input
输入正整数n
Output
输出1² + 2² + ... + n²的值
Sample Input Copy
3
Sample Output Copy
14