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