EasyRating 900
Symmetric?
Print YES if the square matrix equals its transpose.
Input
n, then n lines.
Output
YES or NO.
Sample 1
Input
3 1 2 3 2 4 5 3 5 6
Output
YES
Sample 2
Input
2 1 2 3 4
Output
NO
Output appears heren, then n lines.
YES or NO.
3 1 2 3 2 4 5 3 5 6
YES
2 1 2 3 4
NO
Output appears here