解题思路:
注意事项:
参考代码:
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main() {
int a[4],m, j, i;
cin >> a[1] >> a[2] >> a[3] >> a[4];
for (int x = 4; x >= 1; x--) {
for (int l = 0; m = l % 4 + 1, j = (l / 4) % 4 + 1, i = l / 4 / 4 + 1, l < 4 * 4 * 4; l++) {
if ((i != x) && (j != x) && (m != x) && (i != j) && (i != m) && (j != m))
cout << a[i] << " " << a[j] << " " << a[m] << endl;
}
}
}
0.0分
0 人评分