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