Divisors !!
CodeChefOpen on judge ↗
An integer $i$ is a divisor of an integer $N$ if the remainder of $N/i=0$. Given an integer, for each digit that makes up the integer determine whether it is a divisor. Count the number of divisors occurring within the integer. Note: Each digit is considered to be unique, so each occurrence of the same digit should be counted (e.g. for $N=111$, $1$ is a divisor of $111$ each time it occurs so
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start