Ticket 2185
Problem 1651 -d
Submission 149762286
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
15
4 3
4 2
1 4
3 4
1 3
4 4
1 1
3 3
2 4
2 3
2 2
3 2
2 1
4 1
3 1
Expected Output
5 3
5 2
0 4
3 5
0 3
4 5
0 1
3 5
2 5
0 3
1 2
1 2
2 0
4 0
3 0
Your Output
5 3
5 2
0 4
3 5
0 3
5 4
0 1
0 3
2 5
0 3
1 2
5 2
2 0
5 1
3 0
Difference
Generator Parameters
--co_ord_cap 200000 --co_ord_high 4 --co_ord_low 1 --help_choosing_params Help --n_cap 200000 --n_high 16 --n_low 1