반응형
https://www.acmicpc.net/problem/2864
# @Author YoungMinKim
# baekjoon
a,b = input().split()
maximum = int(a.replace('5','6')) + int(b.replace('5','6'))
minimum = int(a.replace('6','5'))+ int(b.replace('6','5'))
print(minimum,maximum)
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 2908 (0) | 2020.08.26 |
---|---|
baekjoon - python - 2884 (0) | 2020.08.26 |
baekjoon - python - 2753 (0) | 2020.08.26 |
baekjoon - python - 2751 (0) | 2020.08.25 |
baekjoon - python - 2750 (0) | 2020.08.25 |
댓글