#include <iostream>
using namespace std;
int main(void){
int a,b;
while(cin>>a>>b)
cout<<a+b<<endl;
return 0;
}
注意点:
1、Each line will contain two integers A and B. Process to end of file.
意思是多组数据,每行一组。
#include <iostream>
using namespace std;
int main(void){
int a,b;
while(cin>>a>>b)
cout<<a+b<<endl;
return 0;
}
注意点:
1、Each line will contain two integers A and B. Process to end of file.
意思是多组数据,每行一组。