Ticket 2051
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 88
9 4 6 10 1 1 9 3 2 1 4 7 5 3 3 8 1 7 8 8 5 2 9 9 5 5 9 4 7 3 4 4 10 10 1 10 6 5 9 6 4 5 9 6 2 4 6 8 5 1 2 7 10 9 8 2 3 7 6 9 1 10 6 9 2 5 2 9 2 10 6 10 5 10 9 9 7 8 4 9 4 10 9 8 7 2 3 7 
Expected Output
11154
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