Processing math: 100%
Digit Sum - MarisaOJ: Marisa Online Judge

Digit Sum

Time limit: 1000 ms
Memory limit: 256 MB
Let's denote the function f(x) which takes non-negative integers x as input as the sum of digits of x. Calculate: R∑i=Lf(i) ### Input - A single line contains 2 integers L,R. ### Output - Print the result. ### Constraints - 0≤L≤R≤1012. ### Example Input: 911 Output: 12