Programming contests

Magas szintű programozási nyelvek 1, gyakorló feladatsor, 2012. február 20.

February 25, 2014 12:00 PM – April 10, 2014 12:00 AM

Can you add this?

Given two integers, calculate and output their sum.

Input Specification

The input contains several test cases. The first line of the input contains a positive integer Z ≤ 100, denoting the number of test cases. Then Z test cases follow, each test case consists of a single line containing two space separated integers x and y (x, y ∊ [−109, 109]).

Output Specification

For each test case, output one line containing the sum of the corresponding integers.

Sample Input

  1. 4
  2. -100 100
  3. 2 3
  4. 0 110101
  5. -1000000000 1
download as text file

Output for Sample Input

  1. 0
  2. 5
  3. 110101
  4. -999999999
download as text file
University of Debrecen; Faculty of Informatics; v. 03/01/2019