Ticket 618
Problem 1635 -f
Submission 147097713
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
7 3
-9 8
-5 9
-4 2
-1 3
0 2
1 1
8 4
5 7
2 5
3 7
Expected Output
3
5
3
Your Output
3
11
3
Difference
Generator Parameters
--n_cap 300000 --n_high 7 --n_low 2 --q_cap 300000 --q_high 5 --q_low 1 --w_cap 1000000000 --w_high 9 --w_low 1 --x_cap 1000000000 --x_floor -1000000000 --x_high 9 --x_low -9