반응형
문제
Given two integers, calculate and output their sum.
입력
The input contains several test cases. The first line contains and integer t (t ≤ 100) denoting the number of test cases. Then t tests follow, each of them consisiting of two space separated integers x and y (−10^9 ≤ x, y ≤ 10^9).
출력
For each test case output output the sum of the corresponding integers.
풀이
n = int(input())
for _ in range(n):
x,y = map(int, input().split())
print(x+y)
반응형
'Develop > 알고리즘' 카테고리의 다른 글
[백준/Python] Bronze I #11005 진법 변환 2 (0) | 2023.08.17 |
---|---|
[백준/Python] Bronze V #18301 Rats (0) | 2023.08.17 |
[백준/Python] Bronze V #14581 팬들에게 둘러싸인 홍준 (0) | 2023.08.16 |
[백준/Python] Bronze V #27433 팩토리얼 2 (0) | 2023.08.16 |
[백준/Python] Bronze IV #25238 가희와 방어율 무시 (0) | 2023.08.16 |
Comment