解题思路:
注意事项:
参考代码:
#include<iostream>
using namespace std;
int main()
{
int a, b, c, d;
cin >> a >> b >> c >> d;
cout << a << " " << b << " " << c << endl;
cout << a << " " << c << " " << b << endl;
cout << b << " " << a << " " << c << endl;
cout << b << " " << c << " " << a << endl;
cout << c << " " << a << " " << b << endl;
cout << c << " " << b << " " << a << endl;
cout << a << " " << b << " " << d << endl;
cout << a << " " << d << " " << b << endl;
cout << b << " " << a << " " << d << endl;
cout << b << " " << d << " " << a << endl;
cout << d << " " << a << " " << b << endl;
cout << d << " " << b << " " << a << endl;
cout << a << " " << c << " " << d << endl;
cout << a << " " << d << " " << c << endl;
cout << c << " " << a << " " << d << endl;
cout << c << " " << d << " " << a << endl;
cout << d << " " << a << " " << c << endl;
cout << d << " " << c << " " << a << endl;
cout << b << " " << c << " " << d << endl;
cout << b << " " << d << " " << c << endl;
cout << c << " " << b << " " << d << endl;
cout << c << " " << d << " " << b << endl;
cout << d << " " << b << " " << c << endl;
cout << d << " " << c << " " << b << endl;
return 0;
}
0.0分
2 人评分
C语言训练-大、小写问题 (C语言代码)浏览:649 |
C语言程序设计教程(第三版)课后习题5.7 (C语言代码)浏览:1261 |
校门外的树 (C语言代码)浏览:733 |
C语言程序设计教程(第三版)课后习题6.1 (C语言代码)浏览:768 |
简单的a+b (C语言代码)浏览:626 |
K-进制数 (C语言描述,蓝桥杯)浏览:955 |
C二级辅导-计负均正 (C语言代码)浏览:523 |
IP判断 (C语言代码)浏览:592 |
C语言程序设计教程(第三版)课后习题6.9 (C语言代码)浏览:490 |
C语言程序设计教程(第三版)课后习题6.5 (C语言代码)浏览:548 |