Ticket 2980
Problem 1638 -e
Submission 151367122
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
2 8
Query 2
Add 2 1
Add 1 -1
Add 1 2
Query 2
Color 1 2 2
Add 1 2
Query 1
Expected Output
0
1
1
Your Output
0
1
3
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