11604 - 231001_10/19_practice5-2
|
Time |
Memory |
| Case 1 |
1 sec |
32 MB |
| Case 2 |
1 sec |
32 MB |
| Case 3 |
1 sec |
32 MB |
| Case 4 |
1 sec |
32 MB |
| Case 5 |
1 sec |
32 MB |
Description
-
Input a number n, and check whether n is palindrome or not.
-
Palindrome number is such number which when reversed is equal to the original number, for example: 121, 1001, 153351, etc.
-
Hint: Find the reverse number of n (use “%” to calculate from the unit digit to the last digit), and then check whether it is the same as the original n or not.
Input
An integer n
Output
Output: See the sample outputs
Output format: There is a “.” at the end of the message and change a new line
Tags