Problem2430--A. Consecutive Sum

2430: A. Consecutive Sum

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

Description

Sample Input Copy

5
3 2
5 6 0
1 1
7
5 3
7 0 4 0 4
4 2
2 7 3 4
3 3
1000000000 1000000000 999999997

Sample Output Copy

11
7
15
10
2999999997

HINT

Source/Category