seven7777 @ 2021-02-27 20:45:28
#include <bits/stdc++.h>
using namespace std;
int main()
{
int d,b,c,a[20]={0};
int x,y,z,num=0;
cin>>d>>b>>c;
for(int i=1;i<=9;i++)
{
a[i]=i;
} //生成第一次的数组
do
{
x=a[1]*100+a[2]*10+a[3];
y=a[4]*100+a[5]*10+a[6];
z=a[7]*100+a[8]*10+a[9];
if(x*d==y*b&&x*d==z*c&&y*b==z*c)
{
cout<<x<<" "<<y<<" "<<z<<endl;
num++;
}
}while(next_permutation(a+1,a+10)); //从a[1]开始
if(num==0)
cout<<"No!!!"<<endl;
return 0;
}