题解
2025-02-09 11:41:14
发布于:广东
6阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int a,b[4],c;
int main(){
cin>>a;
c=a;
for(int i=1;i<=3;i++){
b[i]=a%10;
a/=10;
}
if(pow(b[1],3)+pow(b[2],3)+pow(b[3],3)==c) cout<<"YES";
else cout<<"NO";
return 0;
}
这里空空如也
有帮助,赞一个