Score : 100 points
问题描述
你已获得 N 对整数:(A1,B1), (A2,B2), …, (AN,BN)。对于每个 i=1,2,…,N,请输出 Ai+Bi。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given N pairs of integers: (A1,B1),(A2,B2),…,(AN,BN). For each i=1,2,…,N, print Ai+Bi.
Constraints
- 1≤N≤1000
- −109≤Ai,Bi≤109
- All values in the input are integers.
The input is given from Standard Input in the following format:
N
A1 B1
A2 B2
⋮
AN BN
Output
Print N lines. For i=1,2,…,N, the i-th line should contain Ai+Bi.
4
3 5
2 -6
-5 0
314159265 123456789
Sample Output 1
8
-4
-5
437616054
- The first line should contain A1+B1=3+5=8.
- The second line should contain A2+B2=2+(−6)=−4.
- The third line should contain A3+B3=(−5)+0=−5.
- The fourth line should contain A4+B4=314159265+123456789=437616054.
update @ 2024/3/10 12:01:08