提交时间:2023-03-01 22:44:09
运行 ID: 10802
#include<bits/stdc++.h> using namespace std; int main(){ int n,a,b,c,j=0,y=0,t=0; cin>>n; for(int i=0;i<n;i++){ cin>>a>>b>>c; j+=a; y+=b; t+=c; } cout<<j<<" "<<y<<" "<<t<<" "<<j+y+t; return 0; }