首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
彻底死去
2026年3月16日 23:47
字符串排序 题解:
P1254
回复 0
|
赞 4
|
浏览 70
#include<iostream> #include<cstdio> #include<cmath> #include<algorithm> #include<string> #include<cstring> using namespace std; int main() { string arr; while (cin >> arr) { sort(arr.begin(), arr.end()); cout <...
太一
2026年3月16日 20:51
字符串排序 题解:
P1254
回复 0
|
赞 2
|
浏览 34
#include<iostream> #include<cmath> #include<algorithm> #include<string> #include<map> using namespace std; int main() { string s; while (cin >> s) { char ch[10000]; &nb...
fuuuuuu
2026年3月12日 20:52
字符串排序 题解:
P1254
回复 0
|
赞 2
|
浏览 93
一个sort解决 #include<bits/stdc++.h> using namespace std; int main(){ string s; while(cin>>s){ //vector<int> a;//先别预设长度,防止有多的0掺和进来 sort(s.begin(),s.end());//s直接能排序 &n...
uly
2026年3月4日 16:22
字符串排序 题解:
P1254
回复 0
|
赞 4
|
浏览 130
#include <bits/stdc++.h> using namespace std; int main() { string s; while (getline(cin,s)) { vector<int> val; for (int i=0; i<s.length(); i++) { val.push_back(s[i]-'a'); } sort(val.begin(), val.end()); ...
Ranz
2026年2月7日 04:08
字符串排序 题解:
P1254
回复 0
|
赞 9
|
浏览 242
#include<bits/stdc++.h> using namespace std; int main(){ string str; while(cin >> str){ sort(str.begin(),str.end()); cout << str << endl; ...
xsw
2026年2月3日 17:13
字符串排序 题解:
P1254
回复 0
|
赞 1
|
浏览 179
#include<iostream> #include<algorithm> using namespace std; int main() { string s; cin >> s; sort(s.begin(), s.end()); cout << s << endl; return 0; }
mlx
2026年1月31日 17:01
字符串排序 题解:
P1254
回复 0
|
赞 1
|
浏览 116
#include<iostream> #include<algorithm> using namespace std; string str; int main() { while(cin>>str) { sort(str.begin(),str.end()); cout<<str<<endl; } return 0; }
yauqq
2026年1月29日 10:05
字符串排序 题解:
P1254
回复 0
|
赞 0
|
浏览 147
#include<bits/stdc++.h> using namespace std; int main(){ string str; while(cin >> str){ sort(str.begin(), str.end()); cout<< str <<endl; } return 0; }
曾不会
2026年1月25日 11:55
字符串排序 题解:
P1254
回复 0
|
赞 2
|
浏览 93
#include<stdio.h> #include<algorithm> #include<string.h> using namespace std; int main() { char s[100]; scanf("%s",s); int l=strlen(s); sort(s,s+l); printf("%s...
曾不会
2026年1月25日 11:50
字符串排序 题解:
P1254
回复 0
|
赞 2
|
浏览 267
数组+冒泡排序 #include<stdio.h> #include<string.h> int main() { char s[100]; scanf("%s",s); int l=strlen(s); if(s[l-1]=='\n') { ...
1
2
3
4
题目
字符串排序
题解数量
38
发布题解
在线答疑
热门题解
1
字符串排序 题解:sort(s.begin(),s.end())
2
字符串排序 题解:
3
字符串排序 题解:sort秒杀
4
字符串排序 题解:
5
字符串排序 题解:c 送分
6
字符串排序 题解:C++
7
字符串排序 题解:
8
字符串排序 (C++)题解:
9
字符串排序 题解:
10
字符串排序 题解: