Ticket 2197
Problem 1651 -f
Submission 149886726
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
9
1 5
4 9
6 2
1 9
5 10
4 5
6 6
8 5
4 6
7
1 10
2 49
6 37
9 39
10 3
11 48
14 46
Expected Output
31
Your Output
26
Difference
Generator Parameters
--c_cap 1000000000 --c_high 10 --c_low 1 --h_cap 1000000000000 --h_high 50 --h_low 1 --n_cap 200000 --n_high 20 --n_low 1 --q_cap 200000 --q_high 10 --q_low 1 --r_cap 1000000000 --r_high 10 --r_low 1 --tj_cap 200000 --tj_high 15 --tj_low 0