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