Ticket 610
Problem 1638 -d
Submission 146427539
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 11 10 1 1 
11 11 7 7 11 
1 3 7 7 11 
Expected Output
8
2 1 1
2 2 3
1 4 1
1 3 1
1 2 10
2 4 11
2 3 7
1 1 11
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