Ticket 2037
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
7 8
53 60 98 64 66 57 85 2 
43 89 26 68 45 41 94 41 
96 43 16 42 21 37 90 90 
24 32 73 12 71 10 12 25 
65 73 1 63 88 29 36 75 
47 66 2 88 41 11 39 18 
80 65 72 51 39 18 66 82 
Expected Output
65
Generator Parameters
--col_cap 100 --col_high 10 --col_low 1 --row_cap 100 --row_high 10 --row_low 1 --val_cap 100000 --val_high 100 --val_low 1