提交时间:2025-12-26 14:27:05

运行 ID: 77558

#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int a,b,c,tota=0,totb=0,totc=0; for(int i = 0;i<n;i++) { cin >> a>>b>>c; tota+=a; totb+=b; totc+=c; } cout <<tota<<" "<<totb<<" "<<totc<<" "<<tota+totb+totc<<endl; return 0; }