<filename>Algorithms/Python/Worm-up/005. Diagonal Difference.py<gh_stars>1-10

a = []
result = 0
for i in range(int(input())):
    a = list(map(int, input().split()))
    result += a[i] - a[- 1 - i]
print(abs(result))

<filename>Algorithms/Python/Worm-up/005. Diagonal Difference.py<gh_stars>1-10

a = []
result = 0
for i in range(int(input())):
    a = list(map(int, input().split()))
    result += a[i] - a[- 1 - i]
print(abs(result))
