Ticket 16554
Problem 1626 -c
Submission 184675104
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
1
15 
8 
9
3 6 8 10 11 12 13 14 20 
3 3 1 8 10 6 1 7 1 
Expected Output
36
106
Your Output
36
205
Difference
Generator Parameters
--k_high 20 --k_low 1 --n_high 9 --n_low 1 --t_high 2 --t_low 1