A+b for Input-output Practice (VII)Time
limit:2000/1000 MS (java/others) Memory limit:65536/32768 K (java/others)
Total submission (s): 52439 Accepted Submission (s): 35139
Problem Descriptionyour task is to Calculate A + B.
Inputthe input would consist of a series of pairs 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, and followed by a blank line.
Sample Input
1 510 20
Sample Output
Authorlcy
recommendjgshining | We have carefully selected several similar problems for you:1096 1061 1108 1018 1170
#include <iostream> #include <cstdio>using namespace Std;int main () { int A, b; while (scanf ("%d%d", &a,&b)!=eof) { printf ("%d\n\n", a+b); } return 0;}
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Hdu-1095-a+b for Input-output Practice (VII) (one more space?) )