Advertisement
Saleh127

atc 042b

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