题目描述

Write a program that requests the user to enter two integers. The program should then calculate and report the sum of all the integers between and including the two integers. At this point, assume that the smaller integer is entered first. For example, if the user enters 2 and 9, the program should report that the sum of all the integers from 2 through 9 is 44.


输入格式

The input consists of n (0<n<100) lines.
Each line consists of 2 integers(range from 0 to 100).
The last line of input consists of Int(-1).


输出格式


样例数据

输入

2 9
0 1
-1

输出

44
1

备注


操作

评测记录

优秀代码

信息

时间限制: 1s
内存限制: 128MB
评测模式: Normal

题解