#include <bits/stdc++.h> using namespace std; int main(int argc, char** argv) { int n; cin>>n; int jin,yin,tong,jin1=0,yin1=0,tong1=0,sum=0; for(int i=0;i<n;i++){ cin>>jin; cin>>yin; cin>>tong; jin1+=jin; yin1+=yin; tong1+=tong; } sum=jin1+yin1+tong1; cout<<jin1<<" "<<yin1<<" "<<tong1<<" "<<sum; return 0; }
标签:tong,int,yin,1064,cin,jin,tong1 From: https://www.cnblogs.com/hanxuyao/p/17112316.html