| 记录编号 | 567304 | 评测结果 | AAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 368.水仙花数 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.000 s | ||
| 提交时间 | 2021-11-26 18:41:16 | 内存使用 | 0.00 MiB | ||
#include <iostream>
using namespace std;
int main()
{
freopen("daff.in","r",stdin);
freopen("daff.out","w",stdout);
int a,b,c,x;
cin>>x;
a=(x/100)%10;
b=(x/10)%10;
c=x%10;
x=100*a+10*b+c;
if(x==a*a*a+b*b*b+c*c*c)
cout<<"TRUE";
if(x!=a*a*a+b*b*b+c*c*c)
cout<<"FALSE";
fclose(stdin);
fclose(stdout);
}