You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Given a square matrix of size N×NN×N, calculate the absolute difference between the sums of its diagonals.
# Input Format
# The first line contains a single integer, NN. The next NN lines denote the matrix's rows, with each line containing NN space-separated integers describing the columns.
# Output Format
# Print the absolute difference between the two sums of the matrix's diagonals as a single integer.