#include <stdio.h>
int main()
{
int x,a,b,c;
for(x=100;x<1000;x++)
{
a=x/100;
b=(x%100)/10;
c=x%10;
if(a*a*a+b*b*b+c*c*c==x)
printf("%d\n",x);
}
return 0;
}
求水仙花数
最新推荐文章于 2023-11-14 21:03:06 发布