#pragma GCC target ("avx")
#pragma GCC optimize (2, 3, "Ofast", "inline", "-ffast-math")
#include<iostream>
using namespace std;
int main(){
int a[1000]={};
for(int i=1;i<=899;i++){
a[i]=100+i;
int b=a[i];
while(b){
if(b%10==0){
a[i]=0;
break;
}
b/=10;
}
}
for(int i=1;i<=729;i++){
for(int j=1;j<=729;j++){
for(int k=1;k<=729;k++){
if(a[j]==a[i]*2&&a[k]==a[i]*3&&a[i]!=0) cout<<a[i]<<" "<<a[j]<<" "<<a[k]<<"\n";
}
}
}
return 0;
}
共 3 条回复
thanks
@root