Algorithm/Baekjoon

단계별로 풀기 4단계 while문 - A+B-5(10952 문제) Python 답안

Bonita SY 2019. 10. 7. 20:25
728x90
반응형

답안)

 

while 1:
  a_b = raw_input()
  a, b = a_b.split(" ")
  result = int(a) + int(b)
  if result == 0:
    exit(0);
  else:
    print result


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

 

10952번: A+B - 5

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

www.acmicpc.net

 

728x90
반응형