Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
41989 董承诺 评最优志愿者 C++ 解答错误 0 0 MS 268 KB 431 2022-06-20 15:24:03

Tests(0/10):


#include<bits/stdc++.h> using namespace std; int a,b,c[110],d[10000010],e,f,g,h[1000010]; int main(){ cin>>a>>b; while(b--){ for(int i=1;i<=a;i++) cin>>c[i]; for(int i=1;i<=a;i++){ e+=c[i]; } f++; d[f]+=e; } e=0; g=d[1]; for(int i=2;i<=a;i++){ g=max(g,d[i]); } for(int i=2;i<=a;i++){ if(d[i]==g) h[i]+=1; } for(int i=2;i<=a;i++){ if(h[i]==1) cout<<h[i]+1<<endl; } return 0; }


测评信息: