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