#2076 Consecutive Sums

10 s   128 MB  

Description

link

Sample Input

Sample Output

5
1
0
6
2

Source

2011 ACM-ICPC Asia Phuket Regional