Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
24545 | LeoWang | 字母组合 | C++ | Accepted | 1 MS | 248 KB | 219 | 2023-08-14 04:48:32 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; string s; for(int i=0;i<n;i++) { char c; cin>>c; s+=c; } std::sort(s.begin(),s.end()); std::cout << s; return 0; }