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