答案如下:↓↓↓
↓
↓
↓
↓
↓
#include <iostream> #include<cstdio> using namespace std; int main(){ int n; cin>>n; int x,y,z; x=n/100; y=(n/10)%10; z=n%10; if (n==x*x*x+y*y*y+z*z*z) cout<<"YES";else cout<<"NO"; return 0; }
如有侵权,请在评论区回复!
2023-08-09 16:17:04
#include <iostream> #include<cstdio> using namespace std; int main(){ int n; cin>>n; int x,y,z; x=n/100; y=(n/10)%10; z=n%10; if (n==x*x*x+y*y*y+z*z*z) cout<<"YES";else cout<<"NO"; return 0; }
如有侵权,请在评论区回复!