Advertisement
Rockett

Untitled

May 13th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. #define F first
  3. #define S second
  4. #define $ ios::sync_with_stdio(0);
  5. #define endl '\n'
  6. using namespace std;
  7. using ll = long long int;
  8. using ii = pair<ll, ll>;
  9. using vi = vector<ll>;
  10. using vii = vector<ii>;
  11. using graph = vector<vi>;
  12. const int INF = 0x3f3f3f3f;
  13. const ll INFL = 0x3f3f3f3f3f3f3f3f;
  14. const int MAXN = 2123;
  15. vector<string> vs;
  16. int main() {$
  17.     int n, m;
  18.     cin >> n >> m;
  19.     string s;
  20.     while (n--) {
  21.         cin >> s;
  22.         vs.emplace_back(s);
  23.     }
  24.     sort(vs.begin(), vs.end());
  25.     for (auto s : vs) {
  26.         cout << s;
  27.     }
  28.     cout << endl;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement