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 b>
td>
|
Input 2 b>
td>
|
7
22 33 44 55 44 33 22
td>
|
5
22 33 44 55 44
td>
|
Output 1 b> td>
| Output 2 b> td>
tr>
YES
td>
|
NO td> |
|
Для отправки решений необходимо выполнить вход.
|