Ticket 7411
Problem 1681 -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
2
13
2 6 3 3 6 4 6 4 5 2 12 10 10 
5 11 12 5 7 8 2 13 11 4 8 8 4 
17
16 3 12 3 8 7 15 17 13 6 9 6 8 11 11 15 8 
13 6 14 11 16 12 11 11 14 12 1 5 13 8 6 8 6 
Expected Output
-1
-1
Generator Parameters
--n_high 20 --n_low 8 --t_high 2 --t_low 1