AC answer
2023-11-28 17:34:39
发布于:安徽
4阅读
0回复
0点赞
#include <bits/stdc++.h>
#define debug freopen("in.txt","r",stdin);freopen("out.txt","w",stdout)
using namespace std;
void work()
{
for(int i=123;i<=333;i++)
{
int j=i2,k=i3;
int a=i/100;
int b=i%100/10;
int c=i%10;
int d=j/100;
int e=j%100/10;
int f=j%10;
int g=k/100;
int h=k%100/10;
int l=k%10;
if(abcdefghl123456789&&a+b+c+d+e+f+g+h+l45)
cout<<i<<" "<<j<<" "<<k<<'\n';
}
}
int main()
{
//debug;
work();
return 0;
}
这里空空如也
有帮助,赞一个