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