#include #include int main(){ int a,b,c,sum; int i; for( i = 100; i <= 999; i++ ) { a = i/100; b = i/10%10; c = i%10%10; sum = pow(a,3)+pow(b,3)+pow(c,3); if( sum == i ) printf("%d \n",i); } return 0;}//求水仙花数