1019 General Palindromic Number
Statement
Metadata
- 作者: CHEN, Yue
- 单位: 浙江大学
- 代码长度限制: 16 KB
- 时间限制: 400 ms
- 内存限制: 64 MB
A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindromic numbers.
Although palindromic numbers are most often considered in the decimal system, the concept of palindromicity can be applied to the natural numbers in any numeral system. Consider a number
Given any positive decimal integer
Input Specification
Each input file contains one test case. Each case consists of two positive numbers
Output Specification
For each test case, first print in one line Yes
if No
if not. Then in the next line, print
Sample Input 1
Sample Output 1
Sample Input 2
Sample Output 2
鸣谢网友“CCPC拿不到牌不改名”修正数据!