This page is still under construction.

Parts of this page are still being built. What you see may change.

A+B with multiple test cases

Time limit1sMemory limit256 MB

Summary
Read T pairs of integers and print each pair's sum on its own line.
Level

Easy1 of 10

Topics
Implementation
Solved
No attempts yet

Problem

Read two integers AA and BB, then print A+BA+B. The input holds several test cases.

Input

The first line holds the number of test cases TT.

Each of the next TT lines holds two integers AA and BB separated by one space. (0<A,B<100 < A, B < 10)

Output

For each test case, print A+BA+B on its own line. The output order matches the input order.

Examples4

  1. Example 1

    Input
    5
    1 1
    2 3
    3 4
    9 8
    5 2
    
    Expected output
    2
    5
    7
    17
    7
    
  2. Example 2

    Input
    1
    1 1
    
    Expected output
    2
    
  3. Example 3

    Input
    1
    9 9
    
    Expected output
    18
    
  4. Example 4

    Input
    2
    1 9
    9 1
    
    Expected output
    10
    10