Ticket 9019
Problem 1682 -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
5
5
8 4 2 9 8 
5
4 2 3 2 1 
5
5 4 2 8 9 
5
8 5 9 7 7 
5
7 7 6 5 6 
Expected Output
3
3
3
3
3
Generator Parameters
--n_high 5 --n_low 5 --t_high 5 --t_low 5 --val_high 9 --val_low 1