| 比赛 | 普及组水题赛(语言题赛) | 评测结果 | AAAAA |
|---|---|---|---|
| 题目名称 | 水仙花数 | 最终得分 | 100 |
| 用户昵称 | 席一鸣 | 运行时间 | 0.002 s |
| 代码语言 | C++ | 内存使用 | 0.31 MiB |
| 提交时间 | 2014-10-14 19:34:34 | ||
#include<cmath>
#include<cstdio>
#include<iostream>
using namespace std;
main()
{
freopen("daff.in","r",stdin);
freopen("daff.out","w",stdout);
int a;
cin>>a;
cout<<(pow(a/100,3)+pow(a/10%10,3)+pow(a%10,3)==a?"TRUE":"FALSE");
}