There was an error while loading. Please reload this page.
1 parent 892d2bd commit b3872adCopy full SHA for b3872ad
1 file changed
leetcode3/최민지/3945.py
@@ -0,0 +1,12 @@
1
+from collections import Counter
2
+
3
+class Solution:
4
+ def digitFrequencyScore(self, n: int) -> int:
5
+ c = Counter(str(n))
6
+ result = 0
7
+ for i in c:
8
+ result += int(i) * c[i]
9
10
+ return result
11
12
0 commit comments