题解 逆序 原串,寻找 前缀,简单易懂 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); // 逆序原字符串 String reverse = new StringBuffer(s).reverse().toString(); String ans = ""; int len = Integer.MAX_VALUE; if(...