Ticket 1641
Problem 1651 -d
Submission 149173240
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
6
1 4
1 7
2 5
7 9
8 1
8 4
Expected Output
0 4
0 7
1 5
6 9
7 1
7 4
Your Output
0 4
0 7
2 6
7 10
8 2
8 5
Difference
Generator Parameters
--co_ord_cap 200000 --co_ord_high 9 --co_ord_low 1 --n_cap 200000 --n_high 7 --n_low 1