문제의 시간 제한이 1초이다.
t = int(input())
for i in range(t):
a,b = map(int, input().split())
print(a+b)
따라서 이렇게 a,b = map(int, input().split())
으로 적으면 틀리게 된다.
sys.stdin.readline():
stdin
은 standard input의 약자이다.input()
에 비해 빠르다.
import sys
t = int(input())
for i in range(t):
a,b = map(int, sys.stdin.readline().split())
print(a+b)