Ticket 5103
Problem 1657 -b
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
20 7 9 2
Expected Output
42
Generator Parameters
--n_high 20 --n_low 20 --t_high 10 --t_low 1 --val_high 9 --val_low 1