1826 区域平方和
Submit solution
Points:
100
Time limit:
1.0s
Memory limit:
32M
Problem types
Allowed languages
C, C++, Java, Python
Description
给定一个整数区域,计算其区域内全部整数的平方和。
Input
一些正整数对A,B(1<A<B<1000)。表示正整数区域[A,B]。
Output
对每个正整数对A,B,以一行的形式输出其区域所有整数的平方和。
Sample
Input
1 3
2 5
Output
14
54
Source: qn
Comments