HDU-1000 A + B Problem


题目

Problem Description

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
 

题解

  愉快的水题……
 
 

代码

1 #include <iostream>
2 using namespace std;
3 int a,b;
4 int main() {
5     while(cin >> a >> b)
6         cout << a+b << endl;
7     return 0;
8 }

 

posted @ 2017-10-07 04:58  HRay-_-  阅读(171)  评论(1)    收藏  举报