杭电OJ是我第一次使用的OJ,在此记录一下刷题的心路历程和解题吧,希望能给自己一个坚持下去的动力。
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
Author
HDOJ
#include <iostream>
using namespace std;
int main(){
int a,b;
while(cin>>a>>b){
cout<<a+b<endl;
}
return 0;
}
该题比较简单,就不再叙述了。