Ticket 591
Problem 1635 -f
Submission 147380764
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 4
-9 2
-8 4
0 1
1 1
3 6
5 5
9 3
5 6
1 2
3 4
1 3
Expected Output
22
6
2
6
Your Output
22
6
2
27
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