1. 程式人生 > >HDU-1000 A + B Problem

HDU-1000 A + B Problem

amp ostream case ace sam script pre code blog


題目

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 }

HDU-1000 A + B Problem