| 记录编号 | 206554 | 评测结果 | AAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 368.水仙花数 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.007 s | ||
| 提交时间 | 2015-11-08 15:25:32 | 内存使用 | 0.31 MiB | ||
#include <fstream>
#include <cmath>
int main()
{
using namespace std;
ifstream fin("daff.in");
ofstream fout("daff.out");
int a;
fin >> a;
if (pow(a/100,3)+pow(a/10%10,3)+pow(a%10,3)==a) fout << "TRUE";
else fout << "FALSE";
}