#include<bits/stdc++.h> using namespace std; int a,b; int k[10]; int main(){ cin>>a; while(a--){ cin>>b; k[b]++; } for(int i=0;i<=9;i++)cout<<k[i]<<" "; return 0; }
By signing up a 启智 | CDEZ OJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 启智 | CDEZ OJ universal account