개발자 뺚
[BAEKJOON ONLINE JUDGE] 7891번 : Can you add this? 본문
시간 제한 : 1 초
메모리 제한 : 128 MB
문제
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):
print(sum(map(int, input().split(" "))))
'Solution > Python' 카테고리의 다른 글
[BAEKJOON ONLINE JUDGE] 8437번 : Julka (1) | 2024.02.06 |
---|---|
[BAEKJOON ONLINE JUDGE] 5522번 : 카드 게임 (0) | 2024.02.05 |
[BAEKJOON ONLINE JUDGE] 6840번 : Who is in the middle? (0) | 2024.02.03 |
[BAEKJOON ONLINE JUDGE] 5341번 : Pyramids (0) | 2024.02.02 |
[BAEKJOON ONLINE JUDGE] 5339번 : 콜센터 (1) | 2024.02.01 |