#P2544. Sum of Two Integers

    ID: 15814 Type: Default 1000ms 256MiB

Sum of Two Integers

Sum of Two Integers

You are given T test cases. For each test case, you are given two integers \(A\) and \(B\). Your task is to compute the sum \(A+B\) for each test case and output the result on a new line.

Input Format:

  • The first line contains an integer \(T\), denoting the number of test cases.
  • Then \(T\) lines follow, each containing two space-separated integers \(A\) and \(B\).

Output Format:

  • For each test case, output a single line containing the sum of \(A\) and \(B\).

Constraints:

  • \(-10^9 \leq A, B \leq 10^9\)
  • 1 \(\leq T \leq 10^5\)

Make sure that your solution is efficient enough to handle the largest inputs within reasonable time limits.

inputFormat

The first line contains an integer T representing the number of test cases. The following T lines each consist of two integers A and B separated by a space.

outputFormat

For each test case, output a single integer—the sum of A and B—on a new line.

sample

3
1 2
3 4
-5 6
3

7 1

</p>