Ticket 1574
Problem 1651 -d
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
13 20
16 17
Expected Output
12 20
15 17
Generator Parameters
--co_ord_cap 200000 --co_ord_high 49 --co_ord_low 1 --n_cap 200000 --n_high 7 --n_low 1