jason611 @ 2019-08-25 20:32:03
using namespace std; int a,b,c,i,l[10],j,k,x,aa[10],mm; int main(){ cin>>a>>b>>c; for(i=1;i<=999a/c;i++){ mm=0; j=ib/a;k=i*c/a; l[1]=i/100; l[2]=i/10%10; l[3]=i%10; l[4]=j/100; l[5]=j/10%10; l[6]=j%10; l[7]=k/100; l[8]=k/10%10; l[9]=k%10;
for(i=1;i<=9;i++){
aa[l[i]]++;
}
for(i=1;i<=9;i++){
if(aa[i]!=1)mm=1;
}
if(mm==0)cout<<i<<j<<k;
}
return 0;
}
by jason611 @ 2019-08-25 20:32:51
using namespace std; int a,b,c,i,l[10],j,k,x,aa[10],mm; int main(){ cin>>a>>b>>c; for(i=1;i<=999a/c;i++){ mm=0; j=ib/a;k=i*c/a; l[1]=i/100; l[2]=i/10%10; l[3]=i%10; l[4]=j/100; l[5]=j/10%10; l[6]=j%10; l[7]=k/100; l[8]=k/10%10; l[9]=k%10;
for(i=1;i<=9;i++){
aa[l[i]]++;
}
for(i=1;i<=9;i++){
if(aa[i]!=1)mm=1;
}
if(mm==0)cout<<i<<j<<k;
}
return 0;
}
by 吾皇 @ 2019-08-25 20:33:27
...
by lygmh @ 2019-08-25 20:35:36
@jason611 请问您想表达什么
by fa_555 @ 2019-08-25 20:37:49
程序
for a in range(123, 330):
b = 2 * a
c = 3 * a
s = str(a) + str(b) + str(c)
if len(s) == len(set(s)) and '0' not in set(s):
print('{} {} {}'.format(a, b, c))
by Dxlm @ 2019-08-25 20:52:03
MD大法好啊
by xyf007 @ 2019-08-25 20:53:43
希望更丰富的展现?使用Markdown