#include <cstring> #include <cstdio> #include <algorithm> using namespace std; char s[100]; int rd[100]; int manecher(char* s) { int len = strlen(s); for (int i = len - 1; i >= 0; i--) { s[i * 2 + 3] = '#'; s[i * 2 + 2] = s[i]; } s[len * 2 + 2] = '
#include <cstring> #include <cstdio> #include <algorithm> using namespace std; char s[100]; int rd[100]; int manecher(char* s) { int len = strlen(s); for (int i = len - 1; i >= 0; i--) { s[i * 2 + 3] = '#'; s[i * 2 + 2] = s[i]; } s[len * 2 + 2] = '