NIBGNAUK is an odd boy and his taste is strange as well. It seems to him that a positive integer number is beautiful if and only if it is divisible by the sum of its digits. We will not argue with this and just count the quantity of beautiful numbers from 1 to N.
NIBGNAUK is an odd boy and his taste is strange as well. It seems to him that a positive integer number is beautiful if and only if it is divisible by the sum of its digits. We will not argue with this and just count the quantity of beautiful numbers from 1 to N.
(图片来源网络,侵删)