首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
exiol
2026年3月23日 22:34
后缀子串排序 题解:自定义排序
P1294
回复 0
|
赞 0
|
浏览 26
#include<bits/stdc++.h> using namespace std; int main() { string s; while(cin>>s) { vector<string>ans; for(int i=0;i<s.size();i++) ...
秋砚舟
2026年3月22日 16:21
后缀子串排序 题解:
P1294
回复 0
|
赞 0
|
浏览 14
#include<iostream> #include<algorithm> #include<vector> using namespace std; int main() { string s; while(cin >> s) { vector<string> ans;  ...
太一
2026年3月18日 00:01
后缀子串排序 题解:
P1294
回复 3
|
赞 3
|
浏览 107
#include<iostream> #include<cmath> #include<algorithm> #include<string> #include<map> using namespace std; int main() { string s; while (cin >> s) { string str[10000]; ...
王艺道
2026年3月16日 18:33
后缀子串排序 题解:
P1294
回复 0
|
赞 0
|
浏览 43
#include<bits/stdc++.h> using namespace std; bool cmp(string a, string b){ int len = a.length() > b.length()? b.length(): a.length(); for(int i = 0; i < len; i++){ if(a[i] < b[i]){ &nbs...
New_chapter
2026年3月16日 10:04
后缀子串排序 题解:有更简单跟暴力的打法吗,兄弟,有的有的
P1294
回复 0
|
赞 1
|
浏览 46
#include<iostream> using namespace std; #include<string> int main(){ string s; while(cin>>s){ int len=s.length(); string *arr=new string[...
HKX9XAS
2026年3月15日 21:43
后缀子串排序 题解:erase(0,1)不断得到字串
P1294
回复 0
|
赞 1
|
浏览 47
#include<stdio.h> #include<iostream> #include<algorithm> #include<string> #include<functional> using namespace std; int main(){ string s_arr[100]; string s; while(cin>>s){ &nb...
yauqq
2026年3月15日 19:20
后缀子串排序 题解:
P1294
回复 0
|
赞 2
|
浏览 36
#include<bits/stdc++.h> using namespace std; int main(){ string s; while(cin >> s){ int n = s.length(); vector<string> str(n); for(int i=0;i<n;i++) str[i] = s.substr(i);// 从第i位开始到最后 sort(str.begin(),str.end()); for(auto it:str) cout <<...
kkkkkkllll
2026年3月12日 18:07
后缀子串排序 题解:
P1294
回复 0
|
赞 1
|
浏览 64
#include <iostream> #include <string> #include <algorithm> #include<ctype.h> #include<map> #include<vector> #include<sstream> using namespace std; bool cmp(string a,string b){ return a.size()<b.size(); } int main() { &n...
Cat111
2026年3月9日 15:57
后缀子串排序 题解:
P1294
回复 0
|
赞 1
|
浏览 108
#include <bits/stdc++.h> using namespace std; bool compareword(char *a,char *b){ return strcmp(a,b)<0; } int main(){ char s[100]; while(scanf("%s",s)!=EOF){ int len=strlen(s); char* suffice[100]; for(int i=0;i<len;i++){ ...
uly
2026年3月4日 17:17
后缀子串排序 题解:
P1294
回复 0
|
赞 4
|
浏览 84
#include <bits/stdc++.h> using namespace std; int main() { string s; while (cin>>s) { vector<string> v; for (int i=0; i<s.size(); i++) { string t; t = s.substr(i); v.push_back(t); } sort(v.begin(), v.end(...
1
2
3
4
题目
后缀子串排序
题解数量
37
发布题解
在线答疑
热门题解
1
参考大家的三种方法
2
后缀子串排序 题解:
3
后缀子串排序 题解: c
4
后缀子串排序 题解:
5
使用string类
6
后缀子串排序 题解:
7
后缀子串排序 题解:
8
后缀子串排序 题解:
9
简洁
10
后缀子串排序 题解:C++ sort