题解 | 多组数据a+b III
多组数据a+b III
https://www.nowcoder.com/practice/7e094c0a3a9945b3bee8e1f3c9ea246a
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<vector<int>> a;
vector<int> b;
int x,y;
while(cin>>x>>y){
if(!(x||y))
break;
a.push_back({x,y});
b.push_back(x+y);
}
for(int bs:b){
cout<<bs<<"\n";
}
}
查看13道真题和解析
