import sys
while True:
a, b = map(int,sys.stdin.readline().split())
if a == 0 and b == 0:
break
else:
print(a+b)
문제: https://www.acmicpc.net/problem/10952
10952번: A+B - 5
두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오.
www.acmicpc.net
'Baekjoon > python' 카테고리의 다른 글
[백준 1110번] 더하기 사이클 (0) | 2023.01.01 |
---|---|
[백준 10951번] A+B - 4 (0) | 2023.01.01 |
[백준 25304번] 영수증 (0) | 2023.01.01 |
[백준 3003번] 킹, 퀸, 룩, 비숍, 나이트, 폰 (0) | 2023.01.01 |
[백준 25083번] 새싹 (0) | 2022.06.08 |