水仙花是吧?
#include
int leaf(int n)
{
x05int a,b,c;
x05a = n / 100;
x05b = (n % 100) / 10;
x05c = n % 10;
x05if(a * a * a + b * b * b + c * c * c == n)
x05x05return 1;
x05else
x05x05return 0;
}
int main()
{
x05int n;
x05scanf("%d",&n);
x05if(leaf(n))
x05x05printf("Yesn");
x05else
x05x05printf("Non");
x05return 0;
}