We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddc129a commit f6347e0Copy full SHA for f6347e0
2501-3000/2520.py
@@ -0,0 +1,8 @@
1
+class Solution:
2
+ def countDigits(self, num: int) -> int:
3
+ str_num, count = str(num), 0
4
+ for digit in str_num:
5
+ if num % int(digit) == 0:
6
+ count += 1
7
+ return count
8
+
0 commit comments