Ticket 7899
Problem 1686 -b
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
2
48
45 9 32 37 16 42 3 20 29 38 8 26 46 4 41 15 5 40 36 48 19 39 18 43 7 35 30 12 1 31 10 21 23 6 11 14 44 25 33 13 22 24 17 2 28 34 47 27 
89
85 24 41 88 23 21 40 74 28 58 4 7 89 31 43 52 25 29 2 30 10 55 44 57 59 1 84 5 61 27 73 34 64 17 18 54 51 36 13 26 45 69 67 86 8 77 70 37 33 6 56 32 72 63 71 35 87 68 49 12 38 22 79 60 82 76 65 46 78 66 14 75 80 42 53 15 50 81 20 83 3 9 47 19 48 11 62 39 16 
Expected Output
18
37
Generator Parameters
--n_high 90 --n_low 1 --t_high 2 --t_low 1