Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
83985 sh25_guwz 可怕的成绩单 C++ 通过 0 MS 248 KB 461 2026-02-05 10:00:02

Tests(1/1):


#include<iostream> #include<algorithm> using namespace std; int s[3]={0},t[3]; int main(){ int n; cin>>n; int a[n][3]; for(int i=0;i<n;++i){ for(int j=0;j<3;++j) cin>>a[i][j]; } for(int i=0;i<3;++i){ for(int j=0;j<n;++j){ s[i]+=a[j][i]; t[i]=s[i]; } } sort(s,s+3); for(int i=0;i<3;++i){ if(s[i]==t[2]) cout<<3-i; } return 0; }


测评信息: