Incorrect expected outcome


#1

for the given test case

1 6 5 0
3 5 3 1

the solution should be 6 ( 5,1 ) but the judge gives 8 ( 3,5 ) which is wrong as 5 is adjacent to 3


#2

A[1][0] (which is 3) + A[0][2] (which is 5) = 8!


#3

Don’t bother. He is stoned…