Ticket 2052
Problem 1648 -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
1 49
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 
Expected Output
19600
Generator Parameters
--col_cap 100 --col_high 100 --col_low 1 --row_cap 100 --row_high 1 --row_low 1 --val_cap 100000 --val_high 1 --val_low 1