A+B (Trial Problem) (Codeforces 1351A)
Tags: Implement, implementation

You are given two integers $$$a$$$ and $$$b$$$. Print $$$a+b$$$.

Input: The first line contains an integer $$$t$$$ ($$$1 \le t \le 10^4$$$) — the number of test cases in the input. Then $$$t$$$ test cases follow.Each test case is given as a line of two integers $$$a$$$ and $$$b$$$ ($$$-1000 \le a, b \le 1000$$$).

Output: Print $$$t$$$ integers — the required numbers $$$a+b$$$.


Sample Inputs:
4
1 5
314 15
-99 99
123 987

Sample Outputs:
6
329
0
1110

Solution (Python):
from sys import stdin, stdout
_ = stdin.readline()
for line in stdin.readlines():
    (a, b) = map(int, line.split())
    stdout.write(str(a + b) + '\n')

Solution (Python):
for k in [*open(0)][1:]:
    print(sum(map(int, k.split())))

Solution (Python):
test = int(input())
list1 = []
list2 = []
for i in range(test):
    (a, b) = input().split(' ')
    list1.append(int(a))
    list2.append(int(b))
for i in range(test):
    print(list1[i] + list2[i])