文章

52

粉丝

0

获赞

82

访问

5.1k

头像
字符串内排序 题解:c++
P1360 哈尔滨工业大学机试
发布于2026年2月10日 15:27
阅读数 33

#include <bits/stdc++.h>
using namespace std;

int main(){
    string s;
    while(cin >> s){
        sort(s.begin(),s.end());
        cout << s << endl;
    }
    return 0;
}

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发