#include<stdio.h>
int main()
{
int i,b0,b1,b2;
int count=0;
for(i=100;i<1000;i++)
{
b0=i/100;
b1=(i-b0*100)/10;
b2=i%10;
if(i==((b0*b0*b0)+(b1*b1*b1)+(b2*b2*b2)))
{
count++;
printf("%d\n",i);
}
}
printf("水仙花个数是:%d",count);
return 0;
}
标签:count,999,该数,b0,b1,b2,100,水仙花 From: https://blog.51cto.com/u_16275321/7627603