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