manacher #include <iostream> #include <vector> using namespace std; int manacher(string str) { // a b // $*a*b*^ // $*a*b*a*^ string astr; astr += '$'; int ret = 1; for ( auto c: str) astr += '*',astr += c; astr += '*',astr += '^'; vector<int> p_len(astr.size(), 1); int a_sz = astr...