fork(1) download
  1. #include <iostream>
  2. #include <cstdio>
  3. #include <algorithm>
  4. using namespace std;
  5.  
  6. const int lim=1e6+5;
  7. int a[lim];
  8.  
  9. int main() {
  10. int t;
  11. scanf("%d", &t);
  12. for(int i=0; i<t; i++) scanf("%d", &a[i]);
  13. sort(a, a+t);
  14. for(int i=0; i<t; i++) printf("%d\n", a[i]);
  15. return 0;
  16. }
Success #stdin #stdout 0s 7248KB
stdin
5
5
3
6
7
1
stdout
1
3
5
6
7