https://www.acmicpc.net/problem/15552
15552번: 빠른 A+B
첫 줄에 테스트케이스의 개수 T가 주어진다. T는 최대 1,000,000이다. 다음 T줄에는 각각 두 정수 A와 B가 주어진다. A와 B는 1 이상, 1,000 이하이다.
www.acmicpc.net
import sys
times = int(input())
result = []
while times:
times -= 1
a, b = map(int, sys.stdin.readline().split())
result.append(a+b)
for i in result:
print(i)
'알고리즘 > 백준' 카테고리의 다른 글
[Python] 백준 2742번 - 기찍 N (0) | 2020.06.09 |
---|---|
[Python] 백준 2741번 - N 찍기 (0) | 2020.06.09 |
[Python] 백준 8393번 - 합 (0) | 2020.06.09 |
[Python/Java] 백준 10950번 - A+B - 3 (0) | 2020.06.09 |
[Python/Java] 백준 2739번 - 구구단 (0) | 2020.06.09 |
댓글