Ticket 687
Problem 1638 -e
Submission 147869989
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
1 9
Add 1 -3
Color 1 1 1
Color 1 1 1
Add 1 2
Add 1 -2
Add 1 -1
Query 1
Color 1 1 1
Add 1 -1
Expected Output
-4
Your Output
29
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 3 --x_low -3