102880: [AtCoder]ABC288 A - Many A+B Problems
Memory Limit:256 MB
Time Limit:2 S
Judge Style:Text Compare
Creator:
Submit:4
Solved:0
Description
Score : $100$ points
Problem Statement
You are given $N$ pairs of integers: $(A_1, B_1), (A_2, B_2), \ldots, (A_N, B_N)$. For each $i = 1, 2, \ldots, N$, print $A_i + B_i$.
Constraints
- $1 \leq N \leq 1000$
- $-10^9 \leq A_i, B_i \leq 10^9$
- All values in the input are integers.
Input
The input is given from Standard Input in the following format:
$N$ $A_1$ $B_1$ $A_2$ $B_2$ $\vdots$ $A_N$ $B_N$
Output
Print $N$ lines. For $i = 1, 2, \ldots, N$, the $i$-th line should contain $A_i+B_i$.
Sample Input 1
4 3 5 2 -6 -5 0 314159265 123456789
Sample Output 1
8 -4 -5 437616054
- The first line should contain $A_1 + B_1 = 3 + 5 = 8$.
- The second line should contain $A_2 + B_2 = 2 + (-6) = -4$.
- The third line should contain $A_3 + B_3 = (-5) + 0 = -5$.
- The fourth line should contain $A_4 + B_4 = 314159265 + 123456789 = 437616054$.
Input
题意翻译
计算 $A+B$ 的值,多测,$T$ 组测试数据。 - $1 \le T \le 1000$ - $-10^9 \le A,B \le 10^9$Output
分数:100分
问题描述
你被给出了 $N$ 对整数:$(A_1, B_1), (A_2, B_2), \ldots, (A_N, B_N)$。 对于每一对 $i = 1, 2, \ldots, N$,输出 $A_i + B_i$。
限制条件
- $1 \leq N \leq 1000$
- $-10^9 \leq A_i, B_i \leq 10^9$
- 输入中的所有值都是整数。
输入
输入从标准输入以以下格式给出:
$N$ $A_1$ $B_1$ $A_2$ $B_2$ $\vdots$ $A_N$ $B_N$
输出
输出 $N$ 行。 对于 $i = 1, 2, \ldots, N$,第 $i$ 行应包含 $A_i+B_i$。
样例输入 1
4 3 5 2 -6 -5 0 314159265 123456789
样例输出 1
8 -4 -5 437616054
- 第一行应包含 $A_1 + B_1 = 3 + 5 = 8$。
- 第二行应包含 $A_2 + B_2 = 2 + (-6) = -4$。
- 第三行应包含 $A_3 + B_3 = (-5) + 0 = -5$。
- 第四行应包含 $A_4 + B_4 = 314159265 + 123456789 = 437616054$。