~Oo爆米花oO~ • 4个月前
using namespace std; int main(){
list<int>a;
list<int>b;
int sum = 0,sum2 = 0;
for(int i=1;i<=10;i++){
int x,x2;
cin >> x >> x2;
sum += x;
sum2 += x2;
a.push_back(x);
b.push_back(x2);
}
cout << sum << "+" << sum2 <<"i";
return 0;
}
评论:
请先登录,才能进行评论