| 比赛 | 普及组水题赛(语言题赛) | 评测结果 | AAAAW |
|---|---|---|---|
| 题目名称 | 水仙花数 | 最终得分 | 80 |
| 用户昵称 | 岳帛翰 | 运行时间 | 0.001 s |
| 代码语言 | C++ | 内存使用 | 0.31 MiB |
| 提交时间 | 2014-10-14 19:06:16 | ||
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
freopen("daff.in","r",stdin);
freopen("daff.out","w",stdout);
int a,b,c,x,f;
cin>>x;
a=x/100;
b=x/10%10;
c=x%10;
f=a*a*a+b*b*b+c*c*c;
if(f!=x) cout<<"FLASE"<<endl;
else cout<<"TRUE"<<endl;
return 0;
}