#icpc2013springb. [icpc2013spring_b]Integer in Integer
[icpc2013spring_b]Integer in Integer
$(function(){document.getElementById("fixed-server-timer").style.display = "none";})
Problem Statement
Given an integer interval \\\[A, B\\\] and an integer , your job is to calculate the number of occurrences of as string in the interval.
For example, appears in twice, and appears in once. Thus the number of occurrences of in \\\[333, 334\\\] is .
Input
The test case is given by a line with the three integers, , , (, ).
Output
Print the number of occurrences of mod 1000000007.
Sample Input 1
1 3 2
Output for Sample Input 1
1
Sample Input 2
333 334 33
Output for Sample Input 2
3
Sample Input 3
0 10 0
Output for Sample Input 3
2
Source Name
Japan Alumni Group Spring Contest 2013