代码
#include <iostream>
#include <string>
using namespace std;
int main()
{
string s1, s2;
cin >> s1 >> s2;
if(s2.size() > s1.size()) swap(s1, s2);
s1 += s1;
if(s1.find(s2) != -1) cout << "true";
else cout << "false";
return 0;
}