暴力硬排,能过就行 import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(sc.hasNext()) { String num = sc.nextLine(); String[] numSpilt = num.split(" "); sort(numSpilt); ...