= 水仙花数 = http://acm.hdu.edu.cn/showproblem.php?pid=2010 {{{#!cplusplus #include int main() {int n,m,t,i,j,ge,shi,bai,flag,sum,a[10] ; while(scanf("%d%d",&n,&m)!=EOF) {if(m>n){t=m;m=n;n=t;} if(m<100||n>999) continue; flag=0;j=0; for(i=m;i<=n;i++) {t=i; ge=t%10; t=t/10;shi=t%10; bai=t/10; sum=ge*ge*ge+shi*shi*shi+bai*bai*bai; if(i==sum) {a[j]=i;j++;flag=1;} } if(flag==0) printf("no\n"); else {printf("%d",a[0]); for(i=1;i