Problem F
Modulo Data Structures
You have an array,
-
Increase all
by for all ; -
Output
for a given .
Input
The first line of input consists of two integers,
The following
Output
For each query of type
Sample Input 1 | Sample Output 1 |
---|---|
5 10 1 1 2 7 1 4 5 6 1 2 3 3 2 1 2 2 2 3 1 3 4 3 2 3 2 4 2 5 |
7 3 7 10 6 10 |