Skip to content

Commit c13bcd5

Browse files
committed
Day14v
1 parent c3cc294 commit c13bcd5

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

leetcode3/최민지/3079.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)