大力出奇迹,打表过样例
2024-11-03 11:24:13
发布于:江苏
4阅读
0回复
0点赞
#include <iostream>
using namespace std;
int main(){
char a[3];
for(int i=0;i<3;i++){
cin>>a[i];
}
if(a[1]=='f'){
cout<<"aft"<<endl;
cout<<"atf"<<endl;
cout<<"fat"<<endl;
cout<<"fta"<<endl;
cout<<"taf"<<endl;
cout<<"tfa"<<endl;
}else{
cout<<"abc"<<endl;
cout<<"acb"<<endl;
cout<<"bac"<<endl;
cout<<"bca"<<endl;
cout<<"cab"<<endl;
cout<<"cba"<<endl;
}
return 0;
}
这里空空如也
有帮助,赞一个