#include "iostream"
#include "stdio.h"
#include "math.h"
#include "map"
#include "vector"
#include "queue"
#include "memory.h"
#include "algorithm"
#include "string"
using namespace std;
#define N 105
#define INF 1<<30
struct DIC
{
char s[105];
}d[100000];
int comp(const void *a,const void *b)
{
DIC *A=(DIC*)a;
DIC* B=(DIC*)b;
return strcmp(A->s,B->s);
}
int main()
{
char str[105];
int i,j,k,ind=0;
char tmp[105];
while(cin>>str)
{
ind=0;
int len=strlen(str);
for(i=1;i<=len;i++)
{
for(j=0;j+i<=len;j++)
{
memset(tmp,'\0',sizeof(tmp));
for(k=0;k<i;k++)
tmp[k]=str[k+j];
st
C++ 子串计算
最新推荐文章于 2023-12-16 13:32:39 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)