Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
76706 sh25_zhuhy 奥运奖牌计数 C++ 通过 0 MS 252 KB 272 2025-12-19 15:48:02

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { int n,j,y,t,j1=0,j2=0,j3=0; cin>>n; for(int i=0;i<n;i++) { cin>>j>>y>>t; j1+=j; j2+=y; j3+=t; } cout<<j1<<" "<<j2<<" "<<j3<<" "<<j1+j2+j3; }


测评信息: