Ticket 2395
Problem 1657 -a
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
2
0 4
5 0
Expected Output
1
1
Generator Parameters
--co_ord_cap 50 --co_ord_high 9 --co_ord_low 0 --t_cap 3000 --t_high 2 --t_low 1