第一题暴力法解了 import java.util.Scanner; public class first { public static void main(String[] args) { Scanner in = new Scanner(System.in); char[] arr = in.nextLine().toCharArray(); int max = 0; int total = 0; for(int i=0;i<arr.length-2;i++){ if(...