Ticket 5519
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
45
Expected Output
30
1 1
2 15
3 14
4 13
5 12
6 11
7 10
8 9
9 8
10 7
11 6
12 5
13 4
14 3
15 2
16 30
17 29
18 28
19 27
20 26
21 25
22 24
23 23
24 22
25 21
26 20
27 19
28 18
29 17
30 16
Generator Parameters
--n_high 50 --n_low 1