You are viewing a single comment's thread. Return to all comments →
Similair code
a=int(input()) x=[] rd=0 ld=0 c=a-1 for i in range(a): x.append(input().split()) rd+=(int(x[i][i])) ld+=(int(x[i][c])) c-=1 print(abs(rd-ld))
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 →
Similair code