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