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