| 记录编号 | 562132 | 评测结果 | AAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 368.水仙花数 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.000 s | ||
| 提交时间 | 2021-07-04 10:09:04 | 内存使用 | 0.00 MiB | ||
#include <fstream>
#include <cstdio>
#include <cmath>
using namespace std;
int main()
{
freopen("daff.in","r",stdin);
freopen("daff.out","w",stdout);
int x,a,b,c;
scanf("%d",&x);
a=x/100;
b=(x-a*100)/10;
c=x%10;
if(x==(pow(a,3)+pow(b,3)+pow(c,3))) printf("TRUE");
else printf("FALSE");
return 0;
}