fork download
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a,b;
  6. int c[1000001];
  7. cin>>a;
  8. for(int i=0;i<a;i++)
  9. {
  10. cin>>b;
  11. c[b]+=1;
  12. }
  13. for(int i=0;i<=1000000;i++)
  14. {
  15. while(c[i]>0)
  16. {
  17. cout<<i<<endl;
  18. c[i]--;
  19. }
  20.  
  21. }
  22.  
  23. return 0;
  24.  
  25. }
  26.  
Runtime error #stdin #stdout 0s 7236KB
stdin
Standard input is empty
stdout
Standard output is empty