laozhang_123 @ 2023-10-31 20:32:50
#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
for(int i=123-123%a;i<=333;i+=a){
int j=i*b;
int k=i*c;
if((i/100+i/10%10+i%10+j/100+j/10%10+j%10+k/100+k/10%10+k%10==1+2+3+4+5+6+7+8+9)&&((i/100)*(i/10%10)*(i%10)*(j/100)*(j/10%10)*(j%10)*(k/100)*(k/10%10)*(k%10)==1*2*3*4*5*6*7*8*9))
cout<<i<<" "<<j<<" "<<k<<" "<<endl;
}
return 0;
}
by 2021zjhs005 @ 2023-10-31 20:37:21