[10952]
b = True
while b != False:
a, b = map(int, input().split())
if a == 0 and b == 0:
break
else:
print(a+b)
[10951]
while True:
try:
a, b = map(int, input().split())
print(a+b)
except:
break
[1110]
n = int(input())
check_n = n
cnt = 0
while True:
temp = (n//10)+(n%10)
new_n = ((n%10)*10)+(temp%10)
cnt += 1
if check_n == new_n:
break
n = new_n
print(cnt)
'Algorithm' 카테고리의 다른 글
[Baekjoon] - 함수 (0) | 2021.06.01 |
---|---|
[Baekjoon] - 1차원 배열 (0) | 2021.06.01 |
Baekjoon - for (0) | 2021.05.30 |
Baekjoon - if (0) | 2021.05.30 |
[Codeup] Python 기초 100제(6) (0) | 2021.05.27 |
댓글