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