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