Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- m = []
- for i in range(n):
- m.append(list(map(int, input().split())))
- a = True
- for i in range(n):
- for j in range(n):
- a = a and m[i][j] == m[j][i]
- if a:
- print("yes")
- else:
- print("no")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement