Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
8539 毕潇天 奥运奖牌计数 C++ 通过 0 MS 244 KB 246 2023-02-10 15:58:34

Tests(1/1):


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


测评信息: