解题思路:
注意事项:
参考代码:
/* */ #include <cstdio> #include <algorithm> #include <iostream> using namespace std; bool check(int n){ int a=n/100; int b=n%100/10; int c=n%10; int t= a*a*a + b*b*b + c*c*c; if(t==n) return true; return false; } int main(){ int n; cin>>n; if(check(n)) cout<<"YES"; else cout<<"NO"; return 0; }
0.0分
2 人评分
求组合数 (C语言代码)浏览:1154 |
WU-复数求和 (C++代码)浏览:2014 |
C语言程序设计教程(第三版)课后习题4.9 (C语言代码)浏览:560 |
A+B for Input-Output Practice (VII) (C语言代码)浏览:525 |
1048题解(读入回车问题)浏览:558 |
青年歌手大奖赛_评委会打分 (C语言代码)浏览:2142 |
C语言程序设计教程(第三版)课后习题8.9 (C语言代码)浏览:498 |
C语言程序设计教程(第三版)课后习题10.2 (C语言代码)浏览:1258 |
1199题解浏览:656 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:446 |