标签:
#include<stdio.h>
int main()
{
int n,a,b,c,i;
while(i--)
{ scanf("%d",&n);
if(n==0)
break;
a=n/100;
b=(n/10)%10;
c=n%10;
if(a*a*a+b*b*b+c*c*c==n)
printf("Yes\n");
else
printf("No\n");
}
return 0;
}
标签:
原文地址:http://www.cnblogs.com/chc0109/p/5492956.html