HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Functions > problem:


50911 - Symmetric Array

Guest
• Discussion of problem (2)

Volume problems

• 50862 - Sum of the Pairs
• 50904 - Print All Prime Numbers
• 50911 - Symmetric Array
• 51003 - Double Prime
• 50935 - Max Discount
• 50838 - Balanced Numbers
• 50851 - Repeated Numbers
• 50916 - Ascending Numbers
• 50724 - Number of Circles
• 50926 - School Mail Merge
• 50917 - Descending Numbers

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.
Prepared by Ibrahim Mesecan.

Symmetric Array

Question
An array is Symmetric if it is read from left to right and right to left the same. Write a program that takes an array and decides if the array is Symmetric or not.

Input specification
You will be first given a number (n) the length of the array. Then, you will be given n integers which are between 1e-7 and 1e7. and 1 ≤ n < 10,000

Output specification
If the array is Symmetric, show "YES", otherwise "NO".

Input 1 Input 2
7
22 33 44 55 44 33 22
5
22 33 44 55 44
Output 1 Output 2
YES
NO

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

www.contester.ru