马拉车算法求最长回文子串 class Palindrome { public: int getLongestPalindrome(string A, int n) { string str = "@#"; int p[100010], id = 0, mx = -1, maxn = -1; memset(p, 0, sizeof(p)); for ( int i = 0; i < n; i++ ) { str += A[i]; str += '#'; ...