题解 | #图片整理#
图片整理
https://www.nowcoder.com/practice/2de4127fda5e46858aa85d254af43941
#include <iostream>
using namespace std;
int main() {
int a[128] = {0};
string str;
while(cin >> str) {
for(auto c: str) {
a[c] ++;
}
}
for(int i =0; i< 128; i++) {
if(a[i] >0) {
for(int j=0; j< a[i]; j++) {
cout << (char)i;
}
}
}
}
// 64 位输出请用 printf("%lld")
巨人网络成长空间 50人发布
查看7道真题和解析