Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77165 sh25_shenpy 可怕的成绩单 C++ 通过 0 MS 260 KB 386 2025-12-21 15:04:01

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int a[n][3]; float p1,p2,p3; for(int j=0;j<n;j++){ for(int io=0;io<3;io++){ cin>>a[j][io]; } } for(int i=0;i<n;i++){ p1+=a[i][0]; p2+=a[i][1]; p3+=a[i][2]; } if(p3>p1&&p3>p2) cout<<"1"; if(p3>p1&&p3<p2||p3<p1&&p3>p2) cout<<"2"; if(p3<p1&&p3<p2) cout<<"3"; return 0; }


测评信息: