A+b for Input-output Practice (II)Time
limit:2000/1000 MS (java/others) Memory limit:65536/32768 K (java/others)
Total submission (s): 73325 Accepted Submission (s): 47653
Problem Descriptionyour task is to Calculate A + B.
Inputinput contains an integer n on the first line, and then n lines follow. Each line consists of a pair of integers a and b, separated by a space, one pair of integers per line.
Outputfor each pair of input integers A and B are should output the sum of a and B in one line, and with one line of OUTPU T for each line in input.
Sample Input
21 510 20
Sample Output
630
Authorlcy
recommendjgshining | We have carefully selected several similar problems for you:1091 1092 1093 1094 1095
#include <iostream> #include <cstdio>using namespace Std;int main () { int a,b,n; scanf ("%d", &n); while (n--) { scanf ("%d%d", &a,&b); printf ("%d\n", a+b); } return 0;}
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Hdu-1090-a+b for Input-output Practice (II) (scam traffic)