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