| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160631 | 王翊金恩 | 19选班长 | C++ | Accepted | 1 MS | 268 KB | 353 | 2026-09-25 18:31:20 |
#include<bits/stdc++.h> using namespace std; int tpx[105]; int main() { int n,p1,p2,p3; cin>>n; for(int i=1;i<=n;i++) { cin>>p1>>p2>>p3; tpx[p1]++; tpx[p2]++; tpx[p3]++; } int mx=tpx[1]; int mxid=1; for(int j=1;j<=n;j++) { if(tpx[j]>mx) { mx=tpx[j]; mxid=j; } } cout<<mxid<<endl; return 0; }