[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)
댓글
궁금한 점, 피드백, 오류 제보를 남겨 주세요.