#P8527. [Ynoi2003] 樋口円香
[Ynoi2003] 樋口円香
Description
Given two sequences and , initially .
You need to perform operations.
In each operation, you are given . For , increase by .
Finally, output the sequence after all operations.
Input Format
The first line contains an integer .
The second line contains integers .
The third line contains an integer .
Then follow lines, each with three integers , representing a query.
Output Format
Output lines, representing after the operations.
3
1 2 3
1
1 2 2
0
1
2
Hint
Idea: nzhtl1477, Solution: ccz181078, Code: ccz181078, Data: ccz181078.
For of the testdata, , , and .
Translated by ChatGPT 5
京公网安备 11011102002149号