Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7086 | 詹梓涵 | 19选班长 | C++ | Wrong Answer | 0 MS | 252 KB | 382 | 2025-04-05 09:00:40 |
#include<bits/stdc++.h> using namespace std; int main(){ int a[11]={}; int n; cin>>n; for(int i=1;i<=n;i++){ int t=3,p; while(t--) cin>>p; a[p]++; } int _max=0,w; for(int i=1;i<=n;i++){ if(a[i]>_max){ _max=a[i]; } } w=_max; cout<<_max<<endl; return 0; }
------Input------
7 4 4 1 7 2 4 3 1 3 5 2 1 1 6 6 6 6 5 3 4 1
------Answer-----
1
------Your output-----
3