import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int[] nums=new int[4]; if (in.hasNext()) { String[] str = in.nextLine().split(" "); for(int i=0;i<4;i++)nums[i]=Integer.parseInt(str[i]); } //先确定四个数字的顺序 for(int a=...