Facebook
From Korpos Botond, 3 Years ago, written in C++.
Embed
Download Paste or View Raw
Hits: 85
  1. #include <iostream>
  2. using namespace std;int e,k,h,f,o;int main(){int n,i,s;cin>>n;for(i=0;i<n;++i){cin>>s;if(s==1)++e;if(s==2)++k;if(s==3)++h;if(s==4)++f;if(s==5)++o;}cout<<e<<" "<<k<<" "<<h<<" "<<f<<" "<<o;}
  3.