文章

119

粉丝

0

获赞

166

访问

10.9k

头像
字符串排序 题解:
P1254 北京大学机试题
发布于2026年1月31日 17:01
阅读数 34

#include<iostream>
#include<algorithm>
using namespace std;

string str;

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

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发