Problem3146--【Div4】从n一直加到m

3146: 【Div4】从n一直加到m

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

题目给出两个数n和m(1 ≤ n,m ≤ 1000000
请输出从n一直加到m的总和。

Input

n,m

Output

n + (n + 1) + (n + 2) + …… + m

Sample Input Copy

5 10

Sample Output Copy

45

HINT

5 + 6 + 7 + 8 + 9 + 10 = 45

Source/Category