文章

14

粉丝

0

获赞

18

访问

1.8k

头像
字符串排序 题解:
P1254 北京大学机试题
发布于2026年2月7日 04:08
阅读数 186

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

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

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发