HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Functions > problem:


135. 50572 - Palindromic Numbers

Guest
• Discussion of problem (1)

Volume problems

• 090. 50378 - Sum of the given digits
• 095. 50453 - The Cubic Difference
• 100. 50397 - The Number of Points ...
• 110. 50409 - Random Password Ge...
• 120. 50684 - Sum of prime numbers...
• 125. 50578 - Mersenne prime
• 130. 50652 - Prime Factorization
• 132. 50474 - Sum of Two Primes
• 135. 50572 - Palindromic Numbers
• 140. 50393 - Palindromic Numbers
• 145. 50586 - Prime Palindromes
• 148. 50412 - K numbers
• 150. 50375 - Area of Circles
• 160. 50388 - Number of Armstrong ...
• 160. 50571 - Armstrong Numbers - 2
• 165. 50577 - Perfect Numbers and ...
• 190. 50533 - Contacts List

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