文件目录

#include <iostream>
using namespace std;
int main()
{
    int n;
    cin >> n;
    int a[10050] = {}, b, fmax = 0;
    for (int i = 0; i < n; i++)
    {
        cin >> b;
        a[b]++; // 计数
        if (b > fmax)
            fmax = b;
    }
    for (int i = 0; i <= fmax; i++)
    {
        cout << a[i] << endl;
    }
    return 0;
}