728x90
반응형
단순 사칙연산 문제이다.
s = input()
if s[1] == '0':
print(10 + int(s[2:]))
else:
print(int(s[0]) + int(s[1:]))
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 15963번 CASIO(python) (0) | 2021.02.08 |
---|---|
백준 알고리즘 15921번 수찬은 마린보이야!!(python) (0) | 2021.02.08 |
백준 알고리즘 15726번 이칙연산(python) (0) | 2021.02.07 |
백준 알고리즘 15700번 타일 채우기 4(python) (0) | 2021.02.07 |
백준 알고리즘 15680번 연세대학교(python) (0) | 2021.02.07 |