Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6. int n;
  7. int tab[6]{0};
  8. int pom;
  9. cin>>n;
  10. for(int i=0;i<n;i++)
  11. {
  12. cin>>pom;
  13. tab[pom-1]++;
  14. }
  15.  
  16. for(int i=0;i<6;i++)
  17. cout<<tab[i]<<" ";
  18.  
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement