eolymp
bolt
Try our new interface for solving problems
Problems

Sum a*a + ... + b * b

Sum a*a + ... + b * b

Given two positive integers $a$ and $b$, find the sum $a \cdot a + ... + b \cdot b$. \InputFile Two positive integers $a$ and $b~(1 \le a \le b \le 1000)$. \OutputFile Print the value of the given sum.
Time limit 1 second
Memory limit 128 MiB
Input example #1
3 7
Output example #1
135
Author Michael Medvedev