HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Recursion > problem:


50911 - Symmetric Array

Guest
• Discussion of problem (2)

Section problems

• 50723 - Tribonacci
• 50370 - Number of rectangles in a ...
• 50475 - Voice advertising
• 50909 - Gold Coins
• 50376 - Sequences
• 50725 - Fibonacci Series
• 50385 - The 3n + 1 problem
• 50911 - Symmetric Array
• 50381 - Sum of the numbers
• 50389 - Reverse an Array
• 50727 - Fibonacci Numbers
• 50415 - The Scientist
• 50421 - Repairing road segments
• 50935 - Max Discount
• 50724 - Number of Circles
• 50729 - Max number in 2D array

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