import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String s = scanner.nextLine(); /** * dp[i][j] 表示 i...j的回文的最大长度 * dp[i][j] = dp[i+1][j-1],s[i]==s[j] * = ...