C++简洁代码:
字串的连接最长路径查找
http://www.nowcoder.com/questionTerminal/5af18ba2eb45443aa91a11e848aa6723
C++简洁代码:
#include<bits/stdc++.h>
using namespace std;
int main() {
int n; cin >> n;
vector<string> res(n);
for(int i = 0; i < n; i ++) cin >> res[i];
sort(res.begin(), res.end());
for(string s : res) cout << s << endl;
return 0;
}
