C语言
#include<stdio.h>
int main(){
int left,right;
while(scanf("%d %d",&left,&right)!=EOF){
int a=0;
if(left==0&&right==0)break;
for(int i=left;i<=right;i++){
int temp=0;
int ii=i;
while(ii){
temp+=(ii%10)*(ii%10)*(ii%10);
ii/=10;
}
if(temp==i){
a=1;
&n...
登录后发布评论
暂无评论,来抢沙发