HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50572 - Palindromic Numbers

Guest
• Discussion of problem (1)

Section problems

• 51030 - Number of Right Triangles
• 50553 - Divisible by m
• 50554 - nth power of m
• 50557 - nth Power of m (Long Multiply)
• 50559 - Prime Factors of a Number
• 50565 - Binary numbers
• 50568 - Body Mass Index Calculator
• 50571 - Armstrong Numbers - 2
• 50572 - Palindromic Numbers
• 50574 - Triangular Numbers
• 50578 - Mersenne prime
• 50579 - Pentagonal Numbers
• 50581 - The roots of a quadratic eq...
• 50582 - Number of digits
• 50583 - Max of 3 numbers
• 50584 - Total invoice amount
• 50585 - Inner Product

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. Difficulty Alpha

Palindromic Numbers

Shqip
Palindromic numbers are read from left to right and right to left the same
e.g. 132 is not a palindromic number because from left to right it's 132, on the other hand it's 231 from right to left. But, 121 is a palindromic number because it's read the same from left to right and right to left.

Input specification
There will a number in the input file which are between 1 ≤ n < 1000000000
Output specification
If it's a palindromic number show "YES", otherwise "NO".
Note:No endline at the end.

Input 1 Input 2
33 72
Output 1 Output 2
YES
NO

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

www.contester.ru