CHEFTIC - Editorial

how can we access the minor diagonal elements?

(i,N-i) for 1 <= i <= N

em still not getting it:(

Can anyone, give some hints or algorithm to be used to solve it in O(n^2)?

the question was poorly expressed. I thought that we had to check all possible diagonals for win