| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 78160 | sh25_shengmy | 奥运奖牌计数 | C++ | 通过 | 0 MS | 252 KB | 292 | 2025-12-26 15:25:51 |
#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; }