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