3444e3ewrf
2024-02-06 18:53:15
发布于:四川
#include <bits/stdc++.h>
using namespace std;
int main(){
int m,j,y,t;
int js=0,ys=0,ts=0;
cin >> m;
for(int i = 0;i < m;i++){
cin >> j >> y >> t;
js = js + j;
ys = ys + y;
ts = ts + t;
}
cout << js << " "<< ys << " "<< ts << " " << ts+ys+js;
return 0;
}
这里空空如也
有帮助,赞一个