Feedback | If you notice incorrect translations in Contester, please let author know.
|
|
Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Difficulty Alpha
Given a square matrix. Check whether it is symmetrical
about the main diagonal.
Input
The first line contains the number n (0 < n ≤ 100).
The following n lines contain n integers, not
exceeding modulo 100,000.
Output
Say "YES", if the matrix is symmetric about the main diagonal,
otherwise withdraw "NO".
Input
Td> tr> |
3
1 2 3
2 4 5
3 5 6
Td> tr> |
Output
Td> tr> |
YES
Td> tr> |
Для отправки решений необходимо выполнить вход.
|