You are viewing a single comment's thread. Return to all comments →
more simple
a = [list(map(int, input().split())) for _ in range(int(input()))] print(abs(sum([a[i][i]-a[i][-i-1] for i in range(len(a))])))
Seems like cookies are disabled on this browser, please enable them to open this website
Diagonal Difference
You are viewing a single comment's thread. Return to all comments →
more simple