编辑代码

#include<iostream>
using namespace std;
int five()
{
	int a,b,c,d,x,y;
	for(a=2;a<=9;a++)
	{
		for(b=0;b<=9;b++)
		{
			for(c=0;c<=9;c++)
			{
				for(d=0;d<=9;d++)
				{
					if((a*10000+b*1000+c*100+a*10+b)*a==(d*100000+d*10000+d*1000+d*100+d*10+d))
					{
						x=(a*10000+b*1000+c*100+a*10+b);
						cout<<x<<endl;
					}
				}
			}
		}
	}
	y=(d*100000+d*10000+d*1000+d*100+d*10+d);
	return y;
}
int main()
{
	int z;
	z=five();
	cout<<z;
	return 0;
}