Ticket 449
Problem 1638 -e
Submission 146681833
View hacks & all small testcases

Unable to dry run this testcase?
Try making a new request with small values of n_high, t_high, *_high, etc.


Retry
Input
9 20
Color 2 5 8
Color 1 7 7
Query 8
Color 1 4 5
Add 4 -3
Query 6
Add 2 -3
Color 7 9 8
Add 1 -3
Query 9
Query 9
Color 5 6 1
Query 9
Add 7 -1
Add 2 0
Color 1 8 6
Color 6 6 1
Add 5 -3
Color 1 3 2
Query 1
Expected Output
0
0
0
0
0
0
Your Output
0
0
0
0
0
-3
Difference
Generator Parameters
--n_cap 1000000 --n_high 20 --n_low 1 --q_cap 1000000 --q_high 20 --q_low 20 --x_cap 1000000000 --x_floor -1000000000 --x_high 3 --x_low -3