| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 124487 | 田子熙 | 18陶陶摘苹果 | C++ | Wrong Answer | 0 MS | 268 KB | 674 | 2025-07-11 16:00:52 |
#include<bits/stdc++.h> using namespace std; int a[200]; int main(){ int n,p1,p2,p3; cin>>n; for(int i=1;i<=n;i++){ cin>>p1>>p2>>p3; a[p1]++; a[p2]++; a[p3]++; } int max=0; int maxid; for(int i=1;i<=n;i++){ if(max<a[i]){ max=a[i]; maxid=i; } } cout<<maxid; return 0; }
------Input------
130 175 173 113 125 101 186 130 143 184 136
------Answer-----
6
------Your output-----
101