#P1008. Counting Problem I——计数问题 I
Counting Problem I——计数问题 I
Statement
Calculate the total number of occurrences of the digit () among all integers in the interval to . For example, in the range of to , that is, among , the digit appears times.
Input
Two integers and , where and , are separated by a single space.
Output
integer, representing the number of occurrences of .
Samples
11 1
4