| 比赛 | 普及组水题赛(语言题赛) | 评测结果 | AAAAA |
|---|---|---|---|
| 题目名称 | 水仙花数 | 最终得分 | 100 |
| 用户昵称 | fyb | 运行时间 | 0.002 s |
| 代码语言 | C++ | 内存使用 | 0.29 MiB |
| 提交时间 | 2014-10-14 19:27:39 | ||
#include <stdio.h>
int main(){
int x,a,b,c;
freopen("daff.in","r",stdin);
freopen("daff.out","w",stdout);
scanf("%d",&x);
a=x/100;
b=x/10%10;
c=x%10;
if(a*a*a+b*b*b+c*c*c==x){
printf("TRUE");
}else{
printf("FALSE");
}
return 0;
}