| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 315691 | 123456 | 【C4-5】求n个数中每个数出现的次数 | C++ | Accepted | 100 | 1 MS | 252 KB | 233 | 2025-04-02 16:02:47 |
#include<bits/stdc++.h> using namespace std; int n,a[105],b[15]; int main(){ cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; b[a[i]]++; } for(int i=1;i<=10;i++){ if(b[i]!=0) cout<<i<<' '<<b[i]<<endl; } return 0; }