Advertisement
T-D-K

Untitled

May 17th, 2018
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. n = int(input())
  2. m = []
  3. for i in range(n):
  4.     m.append(list(map(int, input().split())))
  5. a = True
  6. for i in range(n):
  7.     for j in range(n):
  8.         a = a and m[i][j] == m[j][i]
  9. if a:
  10.     print("yes")
  11. else:
  12.     print("no")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement