문제 풀이/Baekjoon Online Judge
[python3] 10951번 A+B - 4
[잉간]
2019. 3. 17. 23:28
문제는 매우 간단하나 테스트 케이스의 개수와 종료 조건이 없는 문제다.
그렇기 때문에 EOF가 발생할 때까지 입력을 받거나 sys.stdin.read()을 사용해 문제를 해결하면 된다.
문제풀이
while True: try: N = list(map(int,input().split())) print(sum(N)) except EOFError: break