Ticket 4109
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
5
24
1 10 14 20 16 24 3 12 2 16 10 9 17 14 9 10 1 10 2 18 7 8 20 
82
52 38 38 38 78 73 41 23 32 79 22 69 64 48 64 20 24 70 69 73 55 13 13 60 79 35 78 70 46 32 13 21 68 26 16 38 55 2 24 15 67 52 25 74 48 72 52 58 10 44 26 23 59 26 12 70 24 48 15 69 18 31 48 1 38 40 23 48 22 79 13 13 73 59 23 6 11 1 49 74 24 
13
7 6 8 8 1 12 9 1 13 5 9 3 
33
1 16 25 32 9 28 2 21 29 1 19 7 15 1 2 1 29 33 9 28 31 11 8 1 24 8 8 15 4 8 1 11 
39
27 27 37 31 10 27 5 18 15 2 1 34 15 30 6 27 17 16 3 23 23 5 30 9 22 1 9 17 3 17 2 37 9 30 14 29 31 1 
Expected Output
15
43
10
19
21
Generator Parameters
--n_high 100 --n_low 2 --t_high 5 --t_low 1