#include<bits/stdc++.h> using namespace std; const int maxn = 11; int a[maxn]; int main(){ int n,x; cin >> n; for(int i = 1; i <= n;i++){ cin >>x; a[x]++; } for(int i = 1; i <=10;i++){ cout << a[i] << " "; } }
本OJ不对外开放
本题库为可达信奥编程题库,仅对内部学员开放。
内部学员请联系班主任开通题库账号。
使用您的 可达信奥 通用账户