| 记录编号 | 582455 | 评测结果 | AAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 水仙花数 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.000 s | ||
| 提交时间 | 2023-09-13 15:15:03 | 内存使用 | 0.00 MiB | ||
#include<bits/stdc++.h>
#define LOCAL
using namespace std;
int main()
{
#ifdef LOCAL
freopen("daff.in","r",stdin);
freopen("daff.out","w",stdout);
#endif
int x,a,b,c;
cin>>x;
a=x/100;
b=x%100/10;
c=x%10;
if(x==a*a*a+b*b*b+c*c*c)
{
cout<<"TRUE"<<endl;
}
else
{
cout<<"FALSE"<<endl;
}
return 0;
}