Baekjoon/python

[백준 10951번] A+B - 4

Yo-mi 2023. 1. 1. 21:54
import sys
while True:
    try:
        a, b = map(int, sys.stdin.readline().split())
        print(a+b)
    except:
        break

 

예외처리와 관련된 문제이다.

 

 

 

문제: https://www.acmicpc.net/problem/10951

 

10951번: A+B - 4

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

www.acmicpc.net