C++代码
2026-10-03 13:38:47
发布于:湖南
1阅读
0回复
0点赞
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
string s;
cin >> s;
bool a[256] = {false};
for( int i = 0; i < s.size(); i++ ) a[( char )s[i]] = true;
for( int i = 127; i >= 0; i-- ) if( a[i] ) cout << ( char )i;
return 0;
}
这里空空如也






有帮助,赞一个