你的代码呢?
#include <cstdio>
int main(){
int a,b,c,d,e;//赛、软、件、比、拼
for(a=1;a<10;a++){
for(b=1;b<10;b++){
for(c=0;c<10;c++){
for(d=1;d<10;d++){
for(e=0;e<10;e++){
if((100*a+10*b+c)*(d*10+a) == 1000*b+100*c+10*d+e){
if(a==b || a==c||a==d||a==e || b==c||b==d||b==e||c==d||c==e||d==e) continue;
printf("%d%d%d*%d%d=%d%d%d%d\r\n",a,b,c,d,a,b,c,d,e);
}
}
}
}
}
}
return 0;
}
465*14=6510
暴力破解。。。