Welcome, guest! Login / Register - Why register?
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 Apor ( 6 years ago )
#include <iostream>
int main(){int n,x,a[]={0,0,0,0,0},i;std::cin>>n;for(i=0;i<n;i++){std::cin>>x;a[x-1]++;}for(i=0;i<5;i++)std::cout<<a[i]<<' ';return 0;}

 

Revise this Paste

Your Name: Code Language: