题解 | #字符串排序#
字符串排序
http://www.nowcoder.com/practice/5af18ba2eb45443aa91a11e848aa6723
一个字,绝,哦,打错了,multiset
int main() { string s; multiset<string> temp; cin>>s; while(cin>>s) temp.insert(s); for(set<string>::iterator it=temp.begin();it!=temp.end();it++) cout<<*it<<endl; return 0; }