개발자 뺚

[BAEKJOON ONLINE JUDGE] 7891번 : Can you add this? 본문

Solution/Python

[BAEKJOON ONLINE JUDGE] 7891번 : Can you add this?

2024. 2. 4. 13:00

시간 제한 : 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(" "))))