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