You are viewing a single comment's thread. Return to all comments →
My version:
r1, r2 = 0, 0
for i in range(int(input())):
T = list(map(int,input().split())) r1 += T[i] r2 += T[-i-1]
print(abs(r1-r2))
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 →
My version:
r1, r2 = 0, 0
for i in range(int(input())):
print(abs(r1-r2))