Ticket 441
Problem 1638 -e
Submission 146696100
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
6 9
Add 4 235440138
Add 1 -1777188451
Color 4 5 4
Add 1 -643142967
Query 4
Add 5 716861566
Query 5
Color 1 5 6
Query 1
Expected Output
-1777188451
-1777188451
-2420331418
Your Output
-1777188451
-1777188451
1874635878
Difference
Generator Parameters
--n_cap 1000000 --n_high 7 --n_low 1 --q_cap 1000000 --q_high 9 --q_low 1 --x_cap 1000000000 --x_floor -1000000000 --x_high 1000000000 --x_low -2000000000