Ticket 5195
Problem 1665 -c
Submission 153981019
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
4
10
1 10 1 10 2 10 2 2 1 
20
17 15 13 15 12 12 12 14 12 1 1 19 15 12 15 5 3 3 12 
18
1 2 6 15 15 5 16 15 9 13 3 10 12 14 15 4 14 
13
12 13 11 13 11 4 5 7 4 2 8 1 
Expected Output
5
10
14
10
Your Output
4
10
14
10
Difference
Generator Parameters
--WA_ON_TC_20 0 --n_high 30 --n_low 6 --t_high 5 --t_low 1