Problem5806--IOI2021 D1T1:分糖果(candies)

5806: IOI2021 D1T1:分糖果(candies)

[Creator : ]
Time Limit : 2.000 sec  Memory Limit : 256 MiB

Description


Input


Output

Constraints


Sample 1 Input

3
10 15 13
2
0 2 20
0 1 -11

Sample 1 Output

0 4 13

HINT

题目来源:IOI 2021 D1T1。
相同题目:洛谷P8518

Source/Category