TTC '18 Contest 2 P3 - Same Numbers
View as PDFReading numbers are hard. Especially when the numbers are able to go up to .
This time, is given 2 integers, and
. can read a given integer if the number read backwards is the same when the number is read forward.
Can you help find out the amount of integers between and
that he can read?
Input Specification
The first and only line of input will contain two space-separated integers, and
.
Output Specification
You are to output a single integer: the amount of numbers between and
that can read.
Sample Input 1
90 120
Sample Output 1
3
Sample Explanation
The numbers that can read are:
- 99
- 101
- 111
Comments