Ticket 16393
Problem 1744 -d
Submission 178592866
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
6
2 3 3 3 1 2 
6
1 3 1 3 3 2 
Expected Output
3
-1
Your Output
-1
-1
Difference
Generator Parameters
--n_high 6 --n_low 6 --t_high 2 --t_low 1 --val_high 3 --val_low 1