class Solution {public: int getLongestPalindrome(string A, int n) { // write code here if(A.size()==1) //判断字符串是否大小 return 1; int m=0; //记录回文串的大小 string ss; string gg; //定义两个字符串,ss为子串,gg为子串逆序 for(int i=0;i<n;i++){ for(int j=i+1;...