Ticket 2399
Problem 1657 -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
5 3
Expected Output
2932
Generator Parameters
--k_cap 250 --k_high 9 --k_low 1 --n_cap 250 --n_high 9 --n_low 2