알고리즘/소스코드
KOREATECH 1100: 눈이 침침한 재성이
cjw.git
2020. 12. 14. 10:02
Link : judge.koreatech.ac.kr/problem.php?id=1100
Python
더보기
1
2
3
4
5
6
7
8
9
10
11
|
from sys import stdin
temp = stdin.readline().strip().split(' ')
n1 = temp[0]
n2 = temp[1]
max = int(n1.replace('5', '6')) + int(n2.replace('5', '6'))
min = int(n1.replace('6', '5')) + int(n2.replace('6', '5'))
print(min, max)
|
cs |
FeedBack
cjw.git@gmail.com