AT题解ヽ( ̄ω ̄( ̄ω ̄〃)ゝ

魈凯KBS  •  5个月前


include<bits/stdc++.h> using namespace std; int main() {

string s1,s2; cin>>s1>>s2; if(s1.size()<s2.size()) swap(s1,s2); s1+=s1; cout<<(s1.find(s2)==-1?"No":"Yes")<<endl; return 0; }


评论: