알고리즘/백준

[Python] 백준 10952번 - A+B - 5

소꿍 2020. 6. 9. 15:18

https://www.acmicpc.net/problem/10952

 

10952번: A+B - 5

두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오.

www.acmicpc.net

import sys
a, b = map(int, sys.stdin.readline().split())
while a and b:
    print(a+b)
    a, b = map(int, sys.stdin.readline().split())
저작자표시 (새창열림)