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