|
|
back to boardI don't understand a sample test case Posted by Badd 29 Nov 2002 07:59 why don't output in 3rd row , 2nd colum be 8 , fomr 1 + 5 + 2 explain me about this problem please. Sample Input 5 5 0 0 2 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 1 0 0 4 0 Sample Output 2 2 -1 2 -1 3 2 2 7 2 1 7 7 5 7 1 5 5 -1 5 -1 1 4 -1 4 |
|
|