| 比赛 | 普及组水题赛(语言题赛) | 评测结果 | RRRRR |
|---|---|---|---|
| 题目名称 | 水仙花数 | 最终得分 | 0 |
| 用户昵称 | GeekTao | 运行时间 | 0.000 s |
| 代码语言 | C++ | 内存使用 | 0.32 MiB |
| 提交时间 | 2014-10-14 19:17:32 | ||
#include <iostream>
#include <cstring>
#include <cstdio>
using namespace std;
int main()
{
//freopen("daff.in","r",stdin);
//freopen("daff.out","w",stdout);
int a,b;
cin>>a;
b=a;
int a1=b%10;
b=b/10;
int a2=b%10;
b=b/10;
int a3=b%10;
if(a1*a1*a1+a2*a2*a2+a3*a3*a3==a) cout<<"TRUE";
else cout<<"FALSE";
return 0;
}