#include <iostream>
using namespace std;
int main()
{
int n,x1,x2,x3;
for(n=100;n>=100&&n<=999;n++)
{ x1=n%10;
x2=(n/10)%10;
x3=n/100;
if(n==x1*x1*x1+x2*x2*x2+x3*x3*x3)
cout<<n<<endl;
}
return 0;
}
08-12
221
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-09
08-01
12-27
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交