Saleh127

xcvxcv

Jun 26th, 2020
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define test int t; cin>>t; while (t--)
  4. #define ll long long int
  5. #define fellow_junior ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
  6. int main()
  7. {
  8. fellow_junior
  9. ll t;
  10. while(cin>>t && t)
  11. {
  12. string a[1000];
  13. for(ll i=0;i<t;i++)
  14. {
  15. cin>>a[i];
  16. }
  17. sort(a,a+t);
  18. for(ll i=t-1;i>=0;i--)
  19. {
  20. cout<<a[i];
  21. }
  22. cout<<endl;
  23. }
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment