网站建设相关视频,制作主页的软件,wordpress侧边栏加载过慢,清智优化北京题目链接#xff1a;https://www.51nod.com/onlineJudge/questionCode.html#!problemId1347 题意#xff1a;中文题诶#xff5e; 思路#xff1a;稍推理一下就可以发现字符串a是对偶串是其可以由对偶串旋转得到的充要条件#xff1b; 代码#xff1a; 1 #include bi…题目链接https://www.51nod.com/onlineJudge/questionCode.html#!problemId1347 题意中文题诶 思路稍推理一下就可以发现字符串a是对偶串是其可以由对偶串旋转得到的充要条件 代码 1 #include bits/stdc.h2 using namespace std;3 4 string b, a;5 6 bool is_ok(string a){7 int lena.size()/2;8 for(int i0; ilen; i){9 if(a[i]!a[ilen]){
10 return false;
11 }
12 }
13 return true;
14 }
15
16 int main(void){
17 cin a;
18 if(a.size()1){
19 cout NO endl;
20 return 0;
21 }
22 if(is_ok(a)){
23 cout YES endl;
24 }else{
25 cout NO endl;
26 }
27 return 0;
28 } 转载于:https://www.cnblogs.com/geloutingyu/p/6274860.html