10026. 整數連加

I'm a slow walker, but I never walk backwards.

Task Description
迴圈整數連加,
輸入兩個正整數a.b (a < b),
利用迴圈計算從a開始連加到b的總和
Input Format
輸入2個數字(換行輸入)
Output Format
計算答案且輸出
Sample Input
1
10
Sample Output
55
Sample Input
1
100
Sample Output
5050

Submit

Login

Testdata Set

Download Testdata