Ticket 418
Problem 1638 -d
Submission 146499806
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
5 5
18 18 6 1 1 
18 25 25 20 20 
1 25 25 20 20 
1 1 8 9 9 
1 1 1 1 1 
Expected Output
16
1 4 1
2 1 1
1 3 1
1 2 6
1 1 18
4 4 1
4 3 1
4 2 1
4 1 1
3 4 9
3 3 9
3 2 8
3 1 1
2 4 20
2 3 20
2 2 25
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