A Plus B


Submit solution


Points: 5 (partial)
Time limit: 2.0s
Memory limit: 64M

Authors:
Problem type

Niranjan is sitting in math class, on his laptop. Clearly, he is not paying attention in this situation. However, he gets called on by his math teacher to do some problems. Since his math teacher did not expect much from Niranjan, he only needs to do some simple addition problems. However, simple for you and I may not be simple for Niranjan , so please help him!

Input Specification

The first line will contain an integer \(N\) (\(1 \le N \le 100\,000\)), the number of addition problems Niranjan needs to do. The next \(N\) lines will each contain two space-separated integers whose absolute value is less than \(1\,000\,000\,000\), the two integers Niranjan needs to add.

Output Specification

Output \(N\) lines of one integer each, the solutions to the addition problems in order.

Sample Input

    2
    1 1
    -1 0

Sample Output

    2
    -1

Comments


  • 0
    CBENU4CSE20339  commented on April 30, 2021, 1:55 p.m.

    include <stdio.h>

    int main() { int a,i,d,e; scanf("%d",&a); for(i=a;i!=0;i=i-1) { scanf("%d %d",&d,&e); printf("%d",d+e); } return 0; }