Ticket 4163
Problem 1665 -c
Submission 153132996
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
8
7
7 1 7 1 1 1 
5
4 5 1 1 
5
1 4 5 1 
9
6 1 3 6 4 6 9 4 
8
1 1 2 1 1 2 2 
6
5 2 2 1 5 
5
5 4 5 1 
10
9 1 9 9 3 5 5 3 6 
Expected Output
4
4
4
6
4
4
4
6
Your Output
4
4
4
6
5
4
4
6
Difference
Generator Parameters
--n_high 10 --n_low 5 --t_high 10 --t_low 1