Back to the Problem
Compute the first row's sum as the target and verify the other 2N+1 lines against it.
Complexity: O(N2)