丿雨落★花开 @ 2019-12-02 17:39:24
#include <stdio.h>
int main()
{
int a, b, c,i,m,n,p,q,j,f,g,h;
scanf("%d %d %d", &a, &b,&c);
for (i = 123; i <= 997; i++)
{
if ((i * b % a == 0) && ( i * c % a == 0)&& (i * b / a /1000== 0) && (i * c / a/1000 == 0))
{ f = i * b / a; g = i * c / a;
if ((i % 10 + i / 10 % 10 + i / 100 + f % 10 + f / 10 % 10 + f / 100 + g % 10 + g / 10 % 10 + g / 100 == 45) && ((i % 10) * (i / 10 % 10) * (i / 100) * (f % 10) * (f / 10 % 10) * (f / 100) * (g % 10) * (g / 10 % 10) * (g / 100) == 1 * 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9)) printf("%d %d %d\n", i, f, g);
}
}
return 0;
}
by wy93601 @ 2019-12-30 19:28:40
@丿雨落★花开 afddafdafd
by wy93601 @ 2019-12-30 19:29:01
@wy93601 fdsafda fd
by DYM丶剑仙 @ 2020-01-12 15:31:21
输出No