首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

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

2013-03-19 
杭电ACM1095解决A+B问题/*题目:Problem DescriptionYour task is to Calculate a + b.InputThe input will

杭电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;}

热点排行