A + B Problem
Calculate
A + B.
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.
Sample Input
1 1
Sample Output
2
问题链接https://vjudge.net/problem/HDU-1000
1注意连续输出。
2.注意时间复杂度。
#include <iostream>
using namespace std;
int main()
{
int x, y;
while (cin >> x >> y)
{
cout << x + y << endl;
}
}