#include <stdio.h>
#include <stdlib.h>
int main()
{
freopen("out.txt","w",stdout);
int x;
for(x=100;x<=999;x++)
{
int a=x%10;
int c=x/100;
int b=(x/10)%10;
if(a*a*a+b*b*b+c*c*c==x)
printf("%d\n",x);
}
return 0;
}
水仙花数
最新推荐文章于 2022-04-24 10:41:34 发布