HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


50251 - Symmetric matrix

Guest
• Discussion of problem (1)

Section problems

• 50964 - Increasing or Decreasing
• 50948 - Translate Score into Grade
• 51104 - Steel
• 51113 - The Menu
• 51112 - Even Numbers
• 51105 - Currency System
• 51103 - Is it a triangle?
• 51114 - The traveling vehicle
• 50251 - Symmetric matrix
• 50252 - Birthday
• 50239 - Eating cheese
• 50244 - Chessboard Pattern
• 50245 - Santa Gifts
• 50256 - Sequence
• 50257 - Galls village
• 50280 - Division
• 50266 - Kovrov

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
3
1 2 3
2 4 5
3 5 6
Output
YES

Для отправки решений необходимо выполнить вход.

www.contester.ru