Ticket 9087
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
1 9 2 6 9 
5
2 2 6 6 4 
5
1 5 3 6 9 
5
4 5 3 3 6 
5
4 8 3 3 5 
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