delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

27
2.10905.cpp Normal file
View File

@ -0,0 +1,27 @@
#include<bits/stdc++.h>
using namespace std;
string s[55];
int n;
int idx[55];
inline bool cmp(int a,int b)
{
return s[a]+s[b]>s[b]+s[a];
}
int main()
{
#ifdef local
freopen("pro.in","r",stdin);
#endif
while(cin>>n,n!=0)
{
for(int i=0;i<n;i++)
{
idx[i]=i;
cin>>s[i];
}
sort(idx,idx+n,cmp);
for(int i=0;i<n;i++) cout<<s[idx[i]];
cout<<endl;
}
return 0;
}