Ticket 13870
Problem 1695 -d1
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
1
17
3 5
13 4
17 5
15 2
8 12
12 9
12 2
13 6
1 10
11 12
7 6
3 11
2 1
12 14
10 16
15 6
Expected Output
4
Generator Parameters
--n_high 20 --n_low 15 --t_high 1 --t_low 1