Ticket 451
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
4 13
Add 3 4
Color 1 3 1
Query 1
Add 4 -3
Color 1 2 4
Add 1 -2
Color 1 4 2
Add 2 0
Add 1 0
Add 1 4
Color 2 3 3
Query 1
Add 2 -1
Expected Output
0
0
Your Output
0
-2
Difference
Generator Parameters
--n_cap 1000000 --n_high 4 --n_low 4 --q_cap 1000000 --q_high 16 --q_low 4 --x_cap 1000000000 --x_floor -1000000000 --x_high 4 --x_low -4