Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Author: Kanan Asgarli
- https://www.e-olymp.com/az/problems/5089
- */
- #include <iostream>
- #include <algorithm>
- using namespace std;
- int n;
- string a[100];
- int main()
- {
- cin>>n;
- for(int i = 0; i < n; i++)
- cin>>a[i];
- sort(a,a+n);
- for(int i = 0; i < n; i++)
- cout<<a[i]<<endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment