AIBuilder @ 2022-05-14 12:05:16
#include <bits/stdc++.h>
using namespace std;
int num1=0,num2=0,num3=0;
double a,b,c;
bool y = false;
int main()
{
cin>>a>>b>>c;
for(int i=123;i<=330;i++)
{
int counts[11]={0};
num1=i;num2=i/a*b;num3=i/a*c;
counts[num1/100]++;
counts[num2/100]++;
counts[num3/100]++;
counts[num1%100/10]++;
counts[num2%100/10]++;
counts[num3%100/10]++;
counts[num1%10]++;
counts[num2%10]++;
counts[num3%10]++;
bool flag = true;
for(int j=1;j<10;j++)
{
if(counts[j]!=1)
{
flag = false;
break;
}
}
if(flag)
{
y = true;
cout<<num1<<" "<<num2<<" "<<num3<<" "<<endl;;
}
}
if(!y)
{
cout<<"No!!!"<<endl;
return 0;
}
return 0;
}
by LeTu_Jun @ 2022-05-14 12:18:46
codeblock 是神马
by AIBuilder @ 2022-05-14 12:30:23
@和国家干部 一款C++编程软件
by LeTu_Jun @ 2022-05-14 12:33:15
@AIBuilder 哦,我以为是 codeforces 打错了
by creation_hy @ 2022-07-24 11:52:29
为什么要用codeblocks,clion或者vscode不好吗(doge