There was an error while loading. Please reload this page.
1 parent c3cc294 commit c13bcd5Copy full SHA for c13bcd5
1 file changed
leetcode3/최민지/3079.py
@@ -0,0 +1,11 @@
1
+class Solution:
2
+ def sumOfEncryptedInt(self, nums: List[int]) -> int:
3
+ ans = 0
4
+
5
+ for num in nums:
6
+ s = str(num)
7
+ mx = max(s)
8
+ encrypted = int(mx * len(s))
9
+ ans += encrypted
10
11
+ return ans
0 commit comments