Diagonal Difference
Problem Statement
Given a square matrix of size NรN, calculate the absolute difference between the sums of its diagonals.
Input Format
The first line contains a single integer, N. The next N lines denote the matrixโs rows, with each line containing N space-separated integers describing the columns.
Output Format
Print the absolute difference between the two sums of the matrixโs diagonals as aโฆ
View On WordPress







