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