Tyrone @ 2017-03-30 21:45:48
#include<cstdio>
#include<iostream>
using namespace std;
int pd(int);
int sj(int);
int main()
{
int a,b,c,l;
cin>>a>>b>>c;
for(int i=123;i<=329;i++)
{
int f,s,t,sum,sum4,g;
f=i;
s=f*(b/a);
t=f*(c/a);
sum=pd(f)+pd(s)+pd(t);
sum4=sj(f)*sj(s)*sj(t);
if(sum4==362880&&sum==45&&sum4!=0)
{
cout<<f<<" "<<s<<" "<<t<<endl;
l=1;
}
if(i==329&&l!=1)
cout<<"No!!!";
}
}
int pd(int d)
{
int sum1,sum2,sum3,h;
sum1=(d-d%100)/100;
sum2=(d-d%10-sum1*100)/10;
sum3=d%10;
h=sum1+sum2+sum3;
return(h);
}
int sj(int k)
{
int sum5,sum6,sum7,j;
sum5=(k-k%100)/100;
sum6=(k-k%10-sum5*100)/10;
sum7=k%10;
j=sum5*sum6*sum7;
return(j);
}
by lili_flyingcutter @ 2017-04-25 20:59:24
me too!!!
by 黑嵐 @ 2017-04-28 21:22:07
me too!!!
by 2017Larry @ 2017-05-22 21:50:12
me too!!!
by SSHhh @ 2017-05-28 14:42:22
me fivvee!!!
by smallfang @ 2018-10-02 16:22:28
考古
by Viston @ 2018-10-02 16:40:58
考咕
by undefined_Ryan @ 2022-06-21 15:33:27
烤谷