Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by misi05 ( 6 years ago )
#include <iostream>
using namespace std;
int n, f, h[5]={0};
int main()
{
cin >> n;
for (int i=0; i<n; i++)
{
cin >> f;
h[f-1]++;
}
for (int i=0; i<5; i++)
cout << h[i] << " ";
cout << endl;
return 0;
}
Revise this Paste