Ticket 455
Problem 1638 -d
Submission 147008857
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
11 7 7 7 1 
7 7 7 7 9 
7 7 1 9 9 
Expected Output
8
1 4 1
1 1 11
2 4 9
2 3 9
2 2 1
2 1 7
1 3 7
1 2 7
Your Output
-1
Difference
Generator Parameters
--answer_should_exist 1 --col_cap 1000 --col_high 5 --col_low 2 --row_cap 1000 --row_high 5 --row_low 2