Ticket 16567
Problem 429 -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
3 5
4 2 8 3 4 
3 6 7 4 3 
8 0 9 2 0 
Expected Output
53
Generator Parameters
--row_or_col_high 9 --row_or_col_low 3 --val_high 9 --val_low 0