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