杭电1000 A + B Problem

这是杭电OJ的第1000题,这一题其实很简单,但是注意:

本题在题目中Process to end of file,还有下面For each case,所以说本题有多种测试情况,不能简单的测试一个用例就结束了,下面是我的c++提交的一个版本。

#include<iostream>


using namespace std;


int main()
{
int inputA,inputB=0;

while(cin>>inputA>>inputB)
{
cout<<inputA+inputB<<endl;
}
return 0;
}

原文地址:https://www.cnblogs.com/honeybusybee/p/4468149.html