Given a square matrix of size N x N, find the sum of the product of its diagonals.
Input Size : N <= 1000
Sample Testcase :
INPUT
2
2 4
3 7
OUTPUT
26
Comments
Please login to comment.
Given a square matrix of size N x N, find the sum of the product of its diagonals.
Input Size : N <= 1000
Sample Testcase :
INPUT
2
2 4
3 7
OUTPUT
26