| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77558 | sh25_zhangjiajia | 奥运奖牌计数 | C++ | 通过 | 0 MS | 248 KB | 302 | 2025-12-26 14:27:05 |
#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; }