| 记录编号 | 492787 | 评测结果 | AAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 368.水仙花数 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.001 s | ||
| 提交时间 | 2018-03-27 20:01:40 | 内存使用 | 0.32 MiB | ||
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
freopen("daff.in","r",stdin);
freopen("daff.out","w",stdout);
int a,b,c,d;
cin>>a;
b=a%10;
c=a/100;
d=a/10%10;
if(b*b*b+c*c*c+d*d*d==a)
cout<<"TRUE";
else
cout<<"FALSE";
return 0;
}