Ticket 8685
Problem 1635 -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
1
10
-292834675 -686692639 -104302388 -966899257 603336418 -385527831 -170105111 310132135 -534803263 84671675 
Expected Output
8
8 9 10
7 8 10
6 7 10
5 6 10
4 5 10
3 4 10
2 3 10
1 2 10
Generator Parameters
--n_high 10 --n_low 10 --t_high 1 --t_low 1 --val_high 1000000000 --val_low -1000000000