Facebook
From Korpos Botond, 2 Months ago, written in C++.
Embed
Download Paste or View Raw
Hits: 37
  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.