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