首页
DreamJudge
院校信息
考研初试
机试真题
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
机试帐号
2020年2月22日 10:14
string类在后缀字符串的应用
P1294
回复 0
|
赞 2
|
浏览 10.3k
#include<iostream> #include<string> #include<algorithm> using namespace std; bool cmp(string str1,string str2){ int l1=str1.length(); int l2=str2.length(); for(int j=0;j<min(l1,l2);j++) if(str1[j]!=str2[j]) ...
seottle
2020年2月25日 22:49
说输出格式错误?不太理解,不能AC,求大佬解答!!!
P1294
回复 3
|
赞 1
|
浏览 11.6k
#include<bits/stdc++.h> using namespace std; /** @author: ZhengXiaoTao @description: 对于一个字符串,将其后缀子串进行排序, 例如grain 其子串有: grain rain ain in n 然后对各子串按字典顺序排序,即: ain,grain,in,n,rain */ struc...
1
2
3
题目
后缀子串排序
题解数量
22
发布题解
在线答疑
热门题解
1
参考大家的三种方法
2
后缀子串排序 题解:
3
使用string类
4
后缀子串排序 题解: c
5
后缀子串排序 题解:
6
string类在后缀字符串的应用
7
后缀子串排序 C++ map
8
后缀子串排序(C++) 题解:
9
后缀子串排序 题解:C题解
10
后缀子串排序 题解: