#include<bits/stdc++.h>
using namespace std;
int main()
{
string a,b;
while (cin>>a>>b){
if (a.size() < b.size()) printf("no\n");
else{
a=a+a;//保证循环移动的最大化
if(a.find(b) == -1) printf("no\n");
else printf("yes\n");
}
}
return 0;
}
zzuli oj 1163: 亲和串(字符串)
最新推荐文章于 2022-07-04 17:02:22 发布