# include <stdio.h>
int main()
{
int n;
int a,b,c;
while(scanf("%d",&n)&&n!=0)
{
a=n%10;
b=(n%100)/10;
c=n/100;
if(n==a*a*a+b*b*b+c*c*c)
printf("Yes\n");
else
printf("No\n");
}
return 0;
}
NYOJ 题目39 水仙花数
最新推荐文章于 2022-10-30 18:16:20 发布