Ticket 11776
Problem 1690 -e
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
18 4
72 86 20 67 82 50 71 92 69 11 88 3 4 97 12 59 70 92 
14 9
25 10 7 61 4 68 87 70 57 86 40 19 84 86 
Expected Output
260
77
Generator Parameters
--half_n_high 9 --half_n_low 1 --k_high 9 --k_low 1 --t_high 2 --t_low 1 --val_high 99 --val_low 0