原题链接:https://www.lanqiao.cn/problems/17035/learning/?contest_id=177
#include <bits/stdc++.h>
using namespace std;bool cmp(const string &x,const string &y)
{return x+y<y+x;
}int main()
{int n; cin>>n;vector<string> vt(n);for(int i=0;i<n;i++) {cin>>vt[i];}sort(vt.begin(),vt.end(),cmp);for(int i=0;i<n;i++){cout<<vt[i]; }return 0;
}