Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78615 单明哲 19选班长 C++ Accepted 0 MS 272 KB 282 2024-06-23 09:21:49

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int n,s; cin>>n; int a[100]={0}; for(int i=1;i<=n*3;i++){ cin>>s; a[s]++; } int mxx = 0,m=0; for(int i=1;i<=n;i++){ if(mxx<a[i]){ mxx = a[i]; m = i; } } cout<<m; }