Problem G
Sum Kind of Problem
For this problem you will compute various running sums of values for positive integers.
Input
The first line of input contains a single integer
Output
For each data set there is one line of output. The single
output line consists of the data set number,
-
= The sum of the first positive integers. -
= The sum of the first odd integers. -
= The sum of the first even integers.
Sample Input 1 | Sample Output 1 |
---|---|
3 1 1 2 10 3 1001 |
1 1 1 2 2 55 100 110 3 501501 1002001 1003002 |