解题思路:
注意事项:
参考代码:
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
int a,b;
while(cin>>a>>b)
{
int c,d,e,k=0;
for(int i=a;i<=b;i++)
{
c=i%10;
d=i/10%10;
e=i/100;
if(i==c*c*c+d*d*d+e*e*e){
k=1;
cout<<i<<" ";
}
}
if(k==0) cout<<"no"<<endl;
else cout<<endl;
}
return 0;
}
0.0分
0 人评分
【明明的随机数】 (C++代码)浏览:781 |
C语言程序设计教程(第三版)课后习题4.9 (C语言代码)浏览:904 |
C语言程序设计教程(第三版)课后习题5.6 (C语言代码)浏览:512 |
2005年春浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:591 |
完数 (C语言代码)浏览:693 |
字符逆序 (C语言代码)浏览:460 |
GC的苦恼 (C语言代码)浏览:621 |
1162答案错误,为什么浏览:644 |
C语言程序设计教程(第三版)课后习题11.5 (C语言代码)浏览:1000 |
小O的图案 (C语言代码)浏览:915 |