Ticket 3857
Problem 1665 -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
15
8
8 2 1 4 1 2 4 
8
8 1 6 8 1 3 1 
7
7 2 3 7 5 1 
8
3 7 1 4 5 5 5 
6
1 1 3 1 3 
5
1 1 1 1 
7
5 7 5 3 4 1 
10
5 4 9 1 5 4 3 5 5 
9
9 1 2 2 3 1 2 3 
7
6 1 1 6 1 3 
8
5 8 8 7 7 1 5 
5
3 1 3 1 
6
5 5 1 4 3 
10
8 8 10 8 4 1 9 1 1 
9
1 2 7 7 2 2 2 2 
Expected Output
5
5
6
6
3
3
6
6
5
4
5
3
5
6
5
Generator Parameters
--n_high 10 --n_low 5 --t_high 15 --t_low 5