HDU 2010 水仙花数
来源:互联网 发布:网络监控摄像头价格 编辑:程序博客网 时间:2024/04/27 23:17
不解释。
#include <stdio.h>int y[1007];int main(){ int m,n; while (scanf("%d%d",&m,&n)!=EOF) { int bai,shi,ge,z,x=0,count=0; for (int a=m;a<=n;a++) { bai=a/100; z=a%100; shi=z/10; ge=z%10; if (a==bai*bai*bai+shi*shi*shi+ge*ge*ge) { y[x++]=a; count++; } } if (count==0) printf("no\n"); else { for (int b=0;b<x-1;b++) printf("%d ",y[b]); printf("%d\n",y[x-1]); } count=0; } return 0;}
- hdu 2010 水仙花数
- HDU 2010 水仙花数
- HDU 2010 水仙花数
- HDU 2010 水仙花数
- hdu 2010 水仙花数
- HDU 2010 水仙花数
- HDU 2010 - 水仙花数
- HDU 2010 水仙花数。
- HDU 2010 水仙花数
- [hdu 2010] 水仙花数
- HDU-2010 水仙花数
- HDu 2010 水仙花数
- HDU 2010 水仙花数
- HDU 2010 水仙花数
- hdu 2010 水仙花数
- hdu 2010 水仙花数
- HDU 2010 水仙花数
- hdu 2010 水仙花数
- 【Java常用类库】_Arrays笔记
- 导出报表时如何屏蔽单元格中的超链接
- CDbCriteria常用查询条件说明
- 可以让PHP编程事半功倍的类库
- RGB及ARGB中16进制的表示与转换方法
- HDU 2010 水仙花数
- Silverlight Path的Data生成
- C语言 printf
- 人生感悟:《如果》
- JAVA帮助文档全系列 JDK1.5 JDK1.6 JDK1.7 官方中英完整版下载
- vim多文件操作及Window
- Ubuntu 12.04安装Google Chrome
- Mysql 约束(Constraint)
- Godaddy服务器发送邮件出现Could not connect to SMTP host错误 解决办法