| New Comers 20 Second Term contest #2 |
|---|
| Finished |
Given two integers $$$L$$$ and $$$R$$$, print how many numbers $$$x$$$ such that $$$x$$$ is a palindrome number and $$$(L \le x \le R)$$$.
We say that number $$$x$$$ is palindrome if it is integer and reads the same from left to right and right to left.
For example:
Number $$$101$$$ is palindrome because if we reverse $$$101$$$ it will be the same
Number $$$1010$$$ is not palindrome because if we reverse $$$1010$$$ it will be $$$0101$$$.
Number $$$1221$$$ is palindrome because if we reverse $$$1221$$$ it will be the same.
Only one line contains two integers $$$L$$$ and $$$R$$$ where $$$(1 \le L \le R \le 10^6)$$$.
Print how many numbers $$$x$$$ such that $$$x$$$ is a palindrome number and $$$(L \le x \le R)$$$.
1 9
9
1 10
9
12 16
0
| Name |
|---|


