| 记录编号 | 585253 | 评测结果 | AAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 水仙花数 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.000 s | ||
| 提交时间 | 2023-12-02 18:46:03 | 内存使用 | 0.00 MiB | ||
#include<iostream>
#include<iomanip>
#include<cstring>
#include<algorithm>
#include<cmath>
#include<stack>
#include<cstdlib>
#include<stdlib.h>
using namespace std;
int main(){
freopen("daff.in","r",stdin);
freopen("daff.out","w",stdout);
int a;
cin>>a;
if(pow(a/100,3)+pow(a/10%10,3)+pow(a%10,3)==a){
cout<<"TRUE";
} else{
cout<<"FALSE";
}
return 0;
}