| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 315692 | 123456 | 【C4-5】求n个数中出现次数最多的数 | C++ | Accepted | 100 | 0 MS | 256 KB | 219 | 2025-04-02 16:05:21 |
#include<bits/stdc++.h> using namespace std; int n,x,a[15],ma; int main(){ cin>>n; for(int i=1;i<=n;i++){ cin>>x; a[x]++; } for(int i=1;i<=10;i++){ if(a[i]>a[ma]) ma=i; } cout<<ma; return 0; }