Ticket 11502
Problem 1690 -e
Submission 159881516
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 8
30 57 39 11 65 77 53 3 20 68 0 95 65 42 91 68 98 11 
10 3
39 24 87 20 10 63 78 96 48 67 
Expected Output
110
177
Your Output
78
177
Difference
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