wordpress网站突然打不开,上海专业做网站公,ccg 搭建wordpress,营销型网站的类型有哪些C. Canine poetry#xff1a;题目
题意#xff1a;可以用任何小写英文字母替换其中的#xff0c;使其没有回文子串
思路#xff1a;如果两个相同就换#xff0c;如果三个是回文也换#xff0c;先看两个再看三个#include bits/stdc.h
using namespace std;
typed…C. Canine poetry题目
题意可以用任何小写英文字母替换其中的使其没有回文子串
思路如果两个相同就换如果三个是回文也换先看两个再看三个#include bits/stdc.h
using namespace std;
typedef long long ll;
vectorint a((int)4e5);
vectorint b((int)4e5);
string str;
int main()
{int t;cint;while (t--){int res 0;cinstr;int len str.length();for (int i0;ilen;i){if (i0){if (str[i]str[i-1]) {res;str[i] A;}else {if ((i1)(str[i]str[i-2])) {res;str[i] A;}}}}coutresendl;}
}