1.1089
#include <iostream>
using namespace std;
int main(void)
{
int a, b;
while(cin >> a >> b){
cout << a + b << endl;
}
return 0;
}
类型:最基本的输入输出
2.1090
#include <iostream>
using namespace std;
int main(void)
{
int a, b, n, i;
cin >> n;
for(i = 0;i < n;i++){
cin >> a >> b;
cout << a + b << endl;
}
return 0;
}
类型:有n组输入
3.1091
#include <iostream>
using namespace std;
int main(void)
{
int a, b;
while(cin >> a >> b && (a!=<