Ticket 5523
Problem 1667 -c
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
26
Expected Output
17
1 8
2 7
3 6
4 5
5 4
6 3
7 2
8 1
9 17
10 16
11 15
12 14
13 13
14 12
15 11
16 10
17 9
Generator Parameters
--n_high 50 --n_low 1