반응형
# @Author YoungMinKim
# baekjoon
x = input()
if len(x) == 2:
print(int(x[0]) + int(x[1]))
elif len(x) == 3:
if x[:2] == '10':
print(int(x[:2]) + int(x[-1]))
else:
print(int(x[0]) + int(x[1:]))
else:
print(20)
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 14470 (0) | 2021.01.06 |
---|---|
baekjoon - python - 14623 (0) | 2021.01.06 |
baekjoon - python - 14924 (0) | 2021.01.06 |
baekjoon - python - 5533 (0) | 2021.01.03 |
baekjoon - python - 1009 (0) | 2020.12.29 |
댓글