读书人

杭电ACM1095解决A+B有关问题

发布时间: 2013-03-19 17:22:05 作者: rapoo

杭电ACM1095解决A+B问题

/*题目:Problem DescriptionYour task is to Calculate a + b.InputThe input will 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 you should output the sum of a and b, and followed by a blank line. Sample Input1 510 20Sample Output630时间:2012.03.14作者:烟大洋仔题目:感觉现在做的话稍微容易了*/#include <iostream>using namespace std;int main(){    int b,a;    while(cin>>a>>b)    {        cout<<a+b<<endl<<endl;    }    return 0;}

读书人网 >编程

热点推荐