PerfectJames @ 2018-09-19 12:58:02
using namespace std; int num[9]={1,2,3,4,5,6,7,8,9}; int a[1005]={0}; int cf(int x){ int bw=x/100; int sw=x/10%10; int gw=x%10; a[gw]++; a[sw]++; a[bw]++; } int main() { int a,b,c,A,B,C; cin>>a>>b>>c; B=A/ab; C=A/ac; cf(A); cf(B); cf(C); if(a[1]==1 && a[2]==1 && a[3]==1 && a[4]==1 && a[5]==1 && a[6]==1 && a[7]==1 && a[8]==1 && a[9]==1){ cout<<A<<B<<C; memset(a,0,sizeof(a)); } return 0; }
by wenza03 @ 2018-09-19 13:03:49
换行感人
by PerfectJames @ 2018-09-19 13:04:35
using namespace std;
int num[9]={1,2,3,4,5,6,7,8,9};
int a[1005]={0};
int cf(int x){
int bw=x/100;
int sw=x/10%10;
int gw=x%10;
a[gw]++;
a[sw]++;
a[bw]++;
} int main()
{ int a,b,c,A,B,C;
cin>>a>>b>>c;
B=A/a*b;
C=A/a*c;
cf(A);
cf(B);
cf(C);
if(a[1]==1 && a[2]==1 && a[3]==1 && a[4]==1 && a[5]==1 && a[6]==1 && a[7]==1 && a[8]==1 && a[9]==1){
cout<<A<<B<<C;
memset(a,0,sizeof(a));
}
return 0;
}
by 夜刀神十香ღ @ 2018-09-19 13:07:44
希望更丰富的展现?使用Markdown
by sjttsts @ 2018-09-19 13:10:00
by zhangjiacheng @ 2018-09-19 13:11:38
by Messi李 @ 2018-09-19 13:16:13
希望更丰富的展现?使用Markdown
by PerfectJames @ 2018-09-20 12:45:08
include<bits/stdc++.h>
using namespace std;
int num[9]={1,2,3,4,5,6,7,8,9};
int a[1005]={0};
int cf(int x){
int bw=x/100;
int sw=x/10%10;
int gw=x%10;
a[gw]++;
a[sw]++;
a[bw]++;
}
int main()
{
int a,b,c,A,B,C;
cin>>a>>b>>c;
B=A/a*b;
C=A/a*c;
cf(A);
cf(B);
cf(C);
if(a[1]==1 && a[2]==1 && a[3]==1 && a[4]==1 && a[5]==1 && a[6]==1 && a[7]==1 && a[8]==1 && a[9]==1){
cout<<A<<B<<C;
memset(a,0,sizeof(a));
}
return 0;
}