Ticket 2049
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 81
3 9 8 2 8 5 10 7 9 9 7 4 1 3 1 6 10 5 8 3 7 1 8 2 3 7 2 6 1 7 5 5 5 6 5 8 5 5 6 4 9 3 7 2 7 6 2 7 8 7 8 10 6 8 8 6 7 1 9 5 9 1 7 1 8 7 4 9 1 2 3 3 10 10 8 1 6 9 2 5 3 
Expected Output
8991
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 10 --val_low 1