Ticket 439
Problem 1638 -e
Submission 146693304
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 9
Add 4 -3
Add 1 0
Add 2 -3
Add 1 2
Color 2 4 4
Add 4 1
Query 1
Color 2 4 4
Query 4
Expected Output
2
3
Your Output
2
5
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