| 比赛 | 普及组水题赛(语言题赛) | 评测结果 | RRRRR |
|---|---|---|---|
| 题目名称 | 水仙花数 | 最终得分 | 0 |
| 用户昵称 | Golden Dawn | 运行时间 | 0.001 s |
| 代码语言 | C++ | 内存使用 | 0.31 MiB |
| 提交时间 | 2014-10-14 19:52:20 | ||
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
freopen("aplusb.in","r",stdin);
freopen("aplusb.out","w",stdout);
int a,b,c,p,e;
cin>>e;
a=e/100;b=(e-100*a)/10;c=e-100*a-10*b;
p=a*a*a+b*b*b+c*c*c;
if(p==e){
cout<<"TURE"<<endl;
}
if(p!=e){
cout<<"FALSE"<<endl;
}
return 0;
}