1158: 又是排序(指针专题)
import java.util.Arrays;
import java.util.Scanner;
public class Main {
static int []a = new int[4];public static void main(String[] args) {
Scanner cin = new Scanner(System.in);for(int i=0;i<4;i++)a[i]=cin.nextInt();Arrays.sort(a,0,4);for(int i=3;i>=0;i--)System.out.print(a[i]+" ");}
}