Ticket 4890
Problem 1661 -a
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
9
19 99 35 90 91 50 13 98 78 
11 82 78 98 96 37 66 53 33 
9
82 47 27 52 42 85 61 65 27 
24 26 43 41 73 77 45 19 51 
9
23 96 80 35 22 23 96 92 71 
19 14 54 14 84 28 15 30 56 
9
82 64 11 25 100 79 50 84 36 
68 93 35 34 75 38 57 30 79 
9
10 82 36 73 39 98 52 75 96 
100 59 73 38 73 22 86 86 26 
Expected Output
549
242
475
407
268
Generator Parameters
--n_high 9 --n_low 9 --t_high 5 --t_low 5 --val_high 100 --val_low 10