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