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