ACM训练4

A+B Problem

INPUT

Each line will contain two integers A and B. Process to end of file.

OUTPUT

For each case, output A + B in one line.

问题连接:https://vjudge.net/problem/hdu-1000?tdsourcetag=s_pctim_aiomsg

AC代码如下:

#include <iostream>
using namespace std;
int main()
{
	int a = 0, b = 0;
	while(cin >> a >> b)
	cout << a + b << endl;
   
}

猜你喜欢

转载自blog.csdn.net/weixin_43966635/article/details/84844546