Description: If a number (the first non-zero) reading from left to right and from right to left the same time, we will call it a palindrome. For example: Given a decimal number 10, 56, will be 56 plus 65 (that is, to 56 read from right to left), received 121 is a palindrome. Another example: For the 10 number 87: STEP1: 87+78 = 165 STEP2: 165+561 = 726 STEP3: 726+627 = 1353 STEP4: 1353+3531 = 4884 step here is the band conducted a N in addition, the patients received at least step 4 with the palindrome 4884. Write a program that, given a N (2 < = N < = 10 or N = 16) hexadecimal number M, seeking at least after a few steps can be palindrome. (Hexadecimal number using uppercase ABCDEF) Enter the number of bits is less than 10 NM M output
To Search:
File list (Check if you may need any files):
mm.txt