Ticket 16302
Problem 1746 -d
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
1
8 3
5 2 8 6 1 4 5 
1 9 2 6 2 6 8 1 
Expected Output
68
Generator Parameters
--k_high 9 --k_low 1 --n_high 9 --n_low 2 --score_high 9 --score_low 0 --t_high 1 --t_low 1