
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
string str1,str2;
int temp;
cin>>str1>>str2;
//判断长度
if(str1.size()<str2.size()){
swap(str1,str2); //交换内容
}
str1=str1+str1; //AABCDAABCD=AABCD+AABCD
if(str1.find(str2)!=str1.npos){
cout<<"true"; //代表存在
}
else{
cout<<"false"; //代表不存在
}
return 0;
}
本题解析:用到了字符串的处理函数








![[量化投资-学习笔记007]Python+TDengine从零开始搭建量化分析平台-布林带](https://img-blog.csdnimg.cn/b50e5c39bb1d44c1a12fb9e495e79c67.png)



![[PHP]得推跑腿O2O系统 v3.41](https://img-blog.csdnimg.cn/e2c4016d67b146138e27e949f476e217.png)






