Ticket 4280
Problem 1661 -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
7 6
375 687 341 682 853 448 872 
Expected Output
521
Generator Parameters
--b_high 999 --b_low 1 --n_high 9 --n_low 1