解题思路:
注意事项:
参考代码:
import java.util.Scanner; public class C1114 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { int[] a = new int[4]; for(int i = 0; i < 4; i++) a[i] = sc.nextInt(); for(int b = 3; b >= 0; b--){ for(int i = 0; i < 4; i++){ if(i != b){ for(int j = 0; j < 4; j++){ if(j != i && j != b){ for(int k = 0; k < 4; k++){ if(k != i && k != j && k != b) System.out.printf("%d %d %d\n", a[i], a[j], a[k]); } } } } } } } sc.close(); } }
0.0分
0 人评分