Ticket 1694
Problem 1651 -a
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
6
2
Expected Output
63
3
Generator Parameters
--n_cap 30 --n_high 7 --n_low 1 --t_cap 30 --t_high 2 --t_low 1