递归算法,改进了一下,正好踩点通过 import java.util.Scanner; public class Main27 { public static void main(String[] args) { Scanner in = new Scanner(System.in); ...