asgarlikanan

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

Aug 7th, 2016
67
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/4848
  4. */
  5. #include <iostream>
  6. #include <algorithm>
  7. using namespace std;
  8. typedef long long ll;
  9. ll a[100000], k, n;
  10. int main()
  11. {
  12.     while(cin>>n){
  13.         a[k++] = n;    
  14.     }
  15.     sort(a,a+k);
  16.     for(int i = 0; i < k; i++)
  17.         cout<<a[i]<<" ";
  18.     return 0;
  19. }
Add Comment
Please, Sign In to add comment