#P2110. 欢总喊楼记
欢总喊楼记
Description
The girl gives two integers and , and she wants Huan-zong to count how many integers satisfy:
- ,
- The most significant and least significant decimal digits of are equal.
For example (ignoring the restriction ), , , qualify, whereas and do not.
Children, Huan-zong’s happiness in his next life depends on your help!
Input Format
One line containing two integers and .
Output Format
One line with a single integer, the number of that satisfy the property.
2 47
12
Hint
Constraints:
For of the testdata, .
For of the testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号