作者在 2022-06-23 16:03:35 发布以下内容
#include <stdio.h>
int main()
{
int a,b,c,f,m;
for(a=0;a<=52;a++)
for(b=0;b<=52;b++)
for(c=0;c<=52;c++)
for(f=0;f<=52;f++)
for(m=0;m<=52;m++)
{if((a*a+b*b-f*f+m==2*c*c)&&(a*a+2*b+2*m-c==f*f+3)&&(b*b*b-c*c*c+f*f*f+1==a+m))
printf("a=%2d,b=%2d,c=%2d,f=%2d,m=%2d\n",a,b,c,f,m);
}
}
int main()
{
int a,b,c,f,m;
for(a=0;a<=52;a++)
for(b=0;b<=52;b++)
for(c=0;c<=52;c++)
for(f=0;f<=52;f++)
for(m=0;m<=52;m++)
{if((a*a+b*b-f*f+m==2*c*c)&&(a*a+2*b+2*m-c==f*f+3)&&(b*b*b-c*c*c+f*f*f+1==a+m))
printf("a=%2d,b=%2d,c=%2d,f=%2d,m=%2d\n",a,b,c,f,m);
}
}