Ticket 13451
Problem 1700 -e
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 5
20 29 16 5 13 
12 4 14 17 23 
22 34 31 32 3 
10 35 9 24 28 
27 33 18 2 1 
19 25 11 15 26 
7 8 30 6 21 
Expected Output
2
Generator Parameters
--col_high 9 --col_low 1 --row_high 9 --row_low 1