← 返回 cisco 的题目列表Digit Sum Count
类型:online_judge
Given two integers a and b, output the count of numbers less than or equal to a whose digit sum equals b. For example, if a=20 and b=5, the numbers 5 and 14 satisfy the condition, so the output is 2.
Example
Input
20 5