这道题……我也不明白为什么会放在一堆难一点题中间,大概是英文意思不好理解?不晓得不晓得……做这么久,还是第一次这么快。
用时:0ms
#include
#include
int main()
{
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
int n;
while(scanf("%d",&n)==1)
{
if(n==pow(n/100,3)+pow(n/10-n/100*10,3)+pow(n%10,3))
printf("Yes/n");
else
printf("No/n");
}
return 0;
}