Ticket 11326
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
16 9
73 86 6 4 86 29 20 40 24 8 64 69 41 81 11 37 
18 7
24 5 92 20 96 22 98 77 23 68 69 36 62 63 36 94 14 53 
Expected Output
74
135
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