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