#include<bits/stdc++.h>
using namespace std;
set<string> se;
int main(){
string s[601];
int i;
while(true){
if(s[i]=="0"){
break;
}
i++;
cin>>s[i];
se.insert(s[i]);
}
for(set<string>::iterator it=se.begin();it!=se.end();it++){
cout<<*it;
}
return 0;
}
这是代码。
输出是0abcc