Problem T
Program
Mirko is trying to debug a piece of his code. First he
creates an array of
void something( int jump ) { int i = 0; while( i < N ) { seq[i] = seq[i] + 1; i = i + jump; } }
As you can see, this procedure increases by one all elements in the array whose indices are divisible by jump.
Mirko calls the procedure exactly
After this, Mirko has a list of
Input
The first line of input contains two integers,
The second line contains
The third line contains one integer
The next
Output
The output should contain exactly
Sample Input 1 | Sample Output 1 |
---|---|
10 4 1 1 2 1 3 0 9 2 6 7 7 |
35 18 3 |
Sample Input 2 | Sample Output 2 |
---|---|
11 3 3 7 10 3 0 10 2 6 7 7 |
8 2 1 |
Sample Input 3 | Sample Output 3 |
---|---|
1000000 6 12 3 21 436 2 19 2 12 16124 692 29021 |
16422 28874 |