Ticket 5525
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
9
Expected Output
6
1 1
2 3
3 2
4 6
5 5
6 4
Generator Parameters
--n_high 9 --n_low 9