http://acm.hdu.edu.cn/showproblem.php?pid=2010
#include <stdio.h>
int main(){
int m,n,i,a,b,c,flag=0;
while(scanf("%d %d",&m,&n)!=EOF){
for(i=m;i<=n;i++){
a=i%10;
b=i/100;
c=(i-b*100)/10;
if(a*a*a+b*b*b+c*c*c==i){
if(flag==1)printf(" ");
printf("%d",i);
flag=1;
}
}
if(flag==0) printf("no\n");
else printf("\n");
flag=0;
}
return 0;
}