Ticket 2465
Problem 1651 -f
Submission 150649851
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
2
7 2
3 1
10
0 5
1 8
2 4
3 8
4 1
5 6
6 2
7 4
8 5
9 5
Expected Output
12
Your Output
11
Difference
Generator Parameters
--c_cap 1000000000 --c_high 9 --c_low 3 --h_cap 1000000000000 --h_high 9 --h_low 1 --n_cap 200000 --n_high 10 --n_low 1 --q_cap 200000 --q_high 10 --q_low 1 --r_cap 1000000000 --r_high 3 --r_low 1 --tj_cap 200000 --tj_high 9 --tj_low 0