P27036 [AtCoder] A + B Homework
普及
题目描述

Problem Description

Joisino has a cute younger sister.
Currently, it's summer vacation, and her sister is doing her homework. However, she seems to be bored because the same type of problems keep coming up.
Unable to stand it, Joisino decides to help her sister with her homework.

This homework consists of $ N $ addition problems. The $i(1\ ≦\ i\ ≦\ N)$th problem asks to find the sum of $ A_i $ and $ B_i $.
Joisino, too, doesn't want to solve these tedious problems by hand, so she decides to solve them with a program.

Input Format

The input is given from the standard input in the following format:

$ N $ $ A_1 $ $ B_1 $ $ A_2 $ $ B_2 $ : $ A_N $ $ B_N $

  • The first line contains the number of problems $N(1\ ≦\ N\ ≦\ 10^5)$.
  • The next $ N $ lines contain $A_i,B_i(0\ ≦\ A_i,B_i\ ≦\ 10^8)$ for each $ i $th line.

Output Format

The output consists of $ N $ lines.
The $ i $th line should contain the answer to the $ i $th problem.
Make sure to include a newline at the end of the output.

Sample Input and Output

Sample Input #1

2
10 3
5 11

Sample Output #1

13
16

Sample Input #2

3
5 16
59 14
3 17

Sample Output #2

21
73
20

Sample Input #3

10
67 41
0 34
24 69
58 78
64 62
45 5
27 81
91 61
42 95
36 27

Sample Output #3

108
34
93
136
126
50
108
152
137
63

Notes/Hints

Scoring

There are no partial points for this problem. Correctly solving it will earn you 40 points.

Sample Explanation 1

In this case, there are $ 2 $ problems. The correct answer for the first problem is $ 10+3 = 13 $, and for the second problem, it is $ 5+11 = 16 $.

Sample Explanation 2

21
73
20

In this case, there are $ 3 $ problems. The correct answers are $ 21 $, $ 73 $, and $ 20 $ respectively.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
2 10 3 5 11
样例输出
13 16