asgarlikanan

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

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