Ticket 7413
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
1
9
5 1 9 7 6 3 2 2 7 
3 1 8 3 8 2 9 6 5 
Expected Output
-1
Generator Parameters
--n_high 9 --n_low 7 --t_high 3 --t_low 1