1
2
3
4
5
6
|
a,b=input().split()
maxa=a.replace("5","6")
maxb=b.replace("5","6")
mina=a.replace("6","5")
minb=b.replace("6","5")
print( (int(mina)+int(minb)),(int(maxa)+int(maxb)))
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
Leetcode 1827. Minimum Operations to Make the Array Increasing (0) | 2021.07.21 |
---|---|
Leetcode 1323. Maximum 69 Number (0) | 2021.07.21 |
Leetcode 1859. Sorting the Sentence (0) | 2021.07.16 |
백준 3029 경고 (0) | 2021.07.16 |
Leetcode 1913. Maximum Product Difference Between Two Pairs (0) | 2021.07.16 |
댓글