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