Given two numbers a,ba, ba,b, find the count of integers in [a,b][a, b][a,b] whose sum of digits divides the number itself.
One line, two integers aaa and bbb.
A single integer representing the answer.
10 19
3
For all testdata, 1≤a≤b≤10181 \le a \le b \le 10^{18}1≤a≤b≤1018.
Translated by ChatGPT 5
注册一个 云斗学院 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。
使用您的 云斗学院 通用账户