def findDigits(n):
# Write your code here
cnt = 0
for i in str(n):
i = int(i)
if i == 0:
continue
else:
if n % i == 0:
cnt += 1
return cnt
'# 코딩 문제 관련 > 파이썬' 카테고리의 다른 글
[HackerRank-python] Sherlock and Squares (0) | 2022.08.09 |
---|---|
[HackerRank-python] Append and Delete (0) | 2022.08.03 |
[HackerRank-python] Jumping on the Clouds: Revisited (0) | 2022.07.28 |
[HackerRank-python] Sequence Equation (0) | 2022.07.28 |
[HackerRank-python] Circular Array Rotation (0) | 2022.07.27 |