|
|||||||||||||||||||
|
SPOJ time: 2012-05-25 02:26:48 |
Count the numbers!Problem code: HS11DIVS
For given integers a and b your task is to find how many integers in the range [a,b] are divisible by a number x, and have the additional property that the sum of their digits lies in the range [l,r] for given l,r. InputIn the first line you're given a and b ( 1 <= a <= b < 10^100 ). OutputIn the first and only line output the result modulo 1,000,000,007. ExampleInput: ScoringBy solving this problem you score 10 points.
|
||||||||||||||||||
| |||||||||||||||||||