Ticket 2242
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
17
3 1
5 2
2 4
5 4
4 3
4 2
4 1
2 1
5 1
1 4
3 5
1 5
3 4
1 1
5 5
2 5
1 2
Expected Output
3 0
5 3
2 3
4 4
3 3
3 2
4 0
2 0
5 0
0 4
3 6
0 5
3 3
0 1
4 5
2 6
0 2
Generator Parameters
--co_ord_cap 200000 --co_ord_high 5 --co_ord_low 1 --help_choosing_params Help --n_cap 200000 --n_high 25 --n_low 1