解题思路:
注意事项:
参考代码:
/* */ #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语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:521 |
C语言训练-计算1977!* (C++代码)浏览:849 |
C语言程序设计教程(第三版)课后习题8.6 (C语言代码)浏览:589 |
WU-图形输出 (C++代码)浏览:802 |
三角形 (C++代码)递推浏览:756 |
C语言程序设计教程(第三版)课后习题6.5 (C++代码)浏览:449 |
C语言程序设计教程(第三版)课后习题6.8 (C++代码)浏览:575 |
一元一次方程 (C语言代码)浏览:4066 |
1052题解(链表操作)浏览:663 |
10月月赛题解浏览:536 |