| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84446 | 何思佳 | 19选班长 | C++ | Accepted | 1 MS | 272 KB | 296 | 2024-07-16 09:24:04 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int p1,p2,p3; int t[n]={0}; for(int i=0;i<n;i++){ cin>>p1>>p2>>p3; t[p1]++; t[p2]++; t[p3]++; } int bz=0; for(int j=0;j<n;j++){ if(t[j]>t[bz]){ bz=j; } } cout<<bz; return 0; }