标签:des style java color os strong 数据 io
100 120 300 380
no 370 371
#include<stdio.h> int f[200]; int main() { int a,b,i; int k,m,n,l; while(scanf("%d%d",&a,&b)!=EOF) { k=0; for(i=a;i<=b;i++) { m=i%10; n=i/10%10; l=i/100%10; if(i==m*m*m+n*n*n+l*l*l) f[k++]=i; } for(;a<=b;a++) { if(k==0) {printf("no");break;} else { printf("%d",f[0]); for(i=1;i<k;i++) printf(" %d",f[i]); break; } } printf("\n"); } return 0; }
标签:des style java color os strong 数据 io
原文地址:http://blog.csdn.net/qq_16767427/article/details/38116699