You are given two positive integers,
l
andr
. A positive integer is called beautiful if the product of its digits is divisible by the sum of its digits.Return the count of beautiful numbers between
l
andr
, inclusive.
c++
1 | unordered_map<int,int> dp[9][77]; |