Ticket 669
Problem 1630 -a
Submission 147775656
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
2
8 4
2 1
Expected Output
0 3
1 6
2 5
4 7
0 1
Your Output
0 3
4 7
1 6
2 5
1 0
0 1
1 -1
0 2
Difference
Generator Parameters
--pow_2_for_n_cap 16 --pow_2_for_n_high 3 --pow_2_for_n_low 1 --t_cap 400 --t_high 4 --t_low 1