problemscpp
A collection of my answers to algorithm problems in c++.
静态 Public 成员函数 | 所有成员列表
acwing::acwing776类 参考

AcWing 776. 字符串移位包含问题 更多...

#include <acwing.h>

静态 Public 成员函数

static int main (istream &cin, ostream &cout)
 

详细描述

AcWing 776. 字符串移位包含问题

在文件 acwing.h1303 行定义.

成员函数说明

◆ main()

int acwing::acwing776::main ( istream &  cin,
ostream &  cout 
)
static

在文件 acwing.cpp4226 行定义.

4226 {
4227 string s1;
4228 string s2;
4229 cin >> s1 >> s2;
4230 const string s11 = s1 + s1;
4231 const string s22 = s2 + s2;
4232 cout << boolalpha << (s11.find(s2) != string::npos || s22.find(s1) != string::npos);
4233 return 0;
4234 }

被这些函数引用 acwing::TEST().


该类的文档由以下文件生成: