SP17247 PR003004 - Digit Sum

Description

For a pair of integers a and b, the digit sum of the interval \[a,b\] is defined as the sum of all digits occurring in all numbers between (and including) a and b. For example, the digit sum of \[28, 31\] can be calculated as:

Input Format

N/A

Output Format

N/A