| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 41989 | 董承诺 | 评最优志愿者 | C++ | Wrong Answer | 0 | 0 MS | 268 KB | 431 | 2022-06-20 15:24:03 |
#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; }