Ticket 8619
Problem 1665 -c
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
32
24 1 15 12 4 25 28 18 32 26 25 32 7 3 5 30 28 20 23 15 3 15 10 23 25 28 26 23 32 4 15 
28
28 28 26 26 13 9 26 1 9 19 7 25 9 12 24 7 22 14 17 17 7 5 19 14 14 10 12 
14
1 1 5 7 10 10 11 14 1 3 1 14 3 
24
13 22 19 12 18 5 22 12 15 12 1 5 12 3 14 19 16 13 5 24 11 11 5 
Expected Output
18
16
8
14
Generator Parameters
--WA_ON_TC_20 0 --n_high 50 --n_low 10 --t_high 5 --t_low 1