Ticket 5425
Problem 1668 -e
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
27
Expected Output
18
1 1
2 9
3 8
4 7
5 6
6 5
7 4
8 3
9 2
10 18
11 17
12 16
13 15
14 14
15 13
16 12
17 11
18 10
Generator Parameters
--n_high 50 --n_low 1