文章

81

粉丝

0

获赞

282

访问

11.0k

头像
字符串排序 题解:
P1254 北京大学机试题
发布于2025年3月21日 16:36
阅读数 103

#include<bits/stdc++.h>
using namespace std;
int main(){
	string n;
	while(cin>>n){
		sort(n.begin(),n.end());
		cout<<n<<endl;
	}
	return 0;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发