asgarlikanan

https://www.e-olymp.com/az/problems/2324

Aug 20th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
4CS 0.31 KB | None | 0 0
  1. /*
  2.     Author: Kanan Asgarli
  3.     https://www.e-olymp.com/az/problems/2324
  4. */
  5. #include <iostream>
  6. #include <algorithm>
  7. using namespace std;
  8. int n, a[100000];
  9. int main()
  10. {
  11.     cin>>n;
  12.         for(int i = 0; i < n; i++)
  13.             cin>>a[i];
  14.     sort(a,a+n);
  15.     for(int i = 0; i < n; i++)
  16.         cout<<a[i]<<" ";
  17.     return 0;
  18. }
Add Comment
Please, Sign In to add comment