首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
彻底死去
2026年3月19日 20:28
字符串内排序 题解:
P1360
回复 0
|
赞 0
|
浏览 140
#include<iostream> #include<cstdio> #include<cmath> #include<algorithm> #include<string> #include<cstring> using namespace std; int main() { string s; while (cin >> s){ sort(s.begin(), s.end()); cout << s <&...
zzzx
2026年3月19日 19:19
字符串内排序 题解:
P1360
回复 0
|
赞 0
|
浏览 68
#include<bits/stdc++.h> using namespace std; int main(){ string s; while(cin >> s){ sort(s.begin(),s.end()); cout << s << endl; } }
太一
2026年3月18日 17:32
字符串内排序 题解:
P1360
回复 0
|
赞 1
|
浏览 56
#include<iostream> #include<cmath> #include<algorithm> #include<string> #include<map> using namespace std; int main() { string s; while (cin >> s) { sort(s.begin(),s.end()); cout << s << endl; } return 0...
HKX9XAS
2026年3月17日 09:09
字符串内排序 题解:
P1360
回复 0
|
赞 1
|
浏览 120
#include<stdio.h> #include<iostream> #include<algorithm> #include<string> #include<functional> #include<string.h> using namespace std; int main(){ char s[300]; while( scanf("%s",s)!=EOF ){ &n...
xsw
2026年3月11日 13:27
字符串内排序 题解:
P1360
回复 0
|
赞 1
|
浏览 125
#include<iostream> #include<algorithm> using namespace std; int main() { string s; cin >> s; sort(s.begin(), s.end()); cout << s << endl; return 0; }
Cat111
2026年3月9日 19:13
字符串内排序 题解:
P1360
回复 0
|
赞 0
|
浏览 103
#include <bits/stdc++.h> using namespace std; bool cmp(char a,char b){ return a<b; } int main(){ char s[200]; while(scanf("%s",s)!=EOF){ int len=strlen(s); stable_sort(s,s+len,cmp); printf("%s\n",s); } return 0; }
bro
2026年2月10日 15:27
字符串内排序 题解:c++
P1360
回复 0
|
赞 1
|
浏览 225
#include <bits/stdc++.h> using namespace std; int main(){ string s; while(cin >> s){ sort(s.begin(),s.end()); cout << s << endl; } return 0; }
yauqq
2026年1月29日 15:05
字符串内排序 题解:
P1360
回复 0
|
赞 1
|
浏览 215
#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月29日 10:35
字符串内排序 题解:
P1360
回复 0
|
赞 0
|
浏览 213
while(1): try: m=input() l=len(m) s=[] for i in m: s.append(i) k=sorted(s) # print(k) for i in k: print(i,end='') except: break
mlx
2026年1月27日 21:16
字符串内排序 题解:
P1360
回复 0
|
赞 2
|
浏览 323
#include<iostream> using namespace std; const int N=210; string str; void quick_sort(int l,int r)//快速排序 { if(l>=r) return; int x=str[l+r>>1],i=l-1,j=r+1; while(i<j) { do i++; while(str[i]<x); do j--; while(str[j]>x); if(i<j) swap(str[i...
1
2
题目
字符串内排序
题解数量
19
发布题解
在线答疑
热门题解
1
字符串内排序 题解:C
2
字符串内排序(C++) 题解:
3
字符串内排序 题解:
4
字符串内排序 题解:
5
字符串内排序 题解:
6
字符串内排序 题解:
7
字符串内排序 题解:
8
P1360 解题思路分享
9
字符串内排序 题解:
10
字符串内排序 题解: