eolymp
bolt
Try our new interface for solving problems
Problems

Sum of integers on the interval

Sum of integers on the interval

Find the sum of all integers from $a$ to $b$. \InputFile Two integers $а$ and $b$, no more than $2 \cdot 10^9$ by absolute value. \OutputFile Print the sum of all integers from $a$ to $b$.
Time limit 1 second
Memory limit 128 MiB
Input example #1
2 5
Output example #1
14