[Python] 백준 15552번 - 빠른 A+B
Python에서 sys.stdin.readline()으로 빠르게 여러 줄 입력을 처리하는 풀이를 정리했습니다.
For the English version of this post, see here.
[Python] 백준 15552번 - 빠른 A+B
풀이
1
2
3
4
5
6
7
import sys
n = int(input())
for i in range(n):
a, b = map(int, sys.stdin.readline().split())
print(a+b)