Ticket 4746
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
24
17 12 20 2 9 16 5 1 20 12 20 2 20 13 20 1 9 16 2 11 14 21 14 
67
54 16 65 67 36 47 32 7 65 10 59 20 27 10 10 20 6 13 36 56 29 66 49 16 66 16 6 57 25 36 20 47 67 37 66 27 49 18 4 21 6 6 38 4 44 31 31 56 47 16 54 16 57 21 20 4 31 6 62 9 36 47 8 36 1 20 
16
15 13 12 13 13 6 13 12 12 3 6 1 8 10 9 
81
27 76 53 18 32 60 18 28 39 30 30 47 21 32 24 21 1 31 8 29 44 14 14 17 31 14 46 8 23 23 71 24 33 63 68 51 22 21 46 12 4 30 30 60 14 60 19 21 68 21 39 51 39 10 44 29 45 7 29 4 75 46 71 63 23 19 63 16 30 14 28 1 14 79 17 25 71 41 46 46 
Expected Output
13
32
10
39
Generator Parameters
--WA_ON_TC_20 0 --n_high 100 --n_low 2 --t_high 5 --t_low 1