#include <stdio.h>
#include <math.h>
int main(){
int m,n,i,j,k,z,x,temp;
while (scanf("%d%d",&m,&n)!=EOF)
{
if (m>=100 && n<=999 && m<=n){
temp=0;
for (i=m;i<=n;++i){
k=i;
z=0;
for (j=0;j<3;++j){
x=k%10;
z+=pow(x,3);
k/=10;
}
if (z==i){
printf ("%d ",z);
temp=1;
}
}
if (temp==0) printf("no\n");
else printf("\b\n");
}
}
return 0;
}
编译运行都没问题,可就是不通过提示Wrong Answer