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