6.10水仙花数
来源:互联网 发布:相同格式表格数据合并 编辑:程序博客网 时间:2024/06/07 00:59
#include <stdio.h>#include <math.h>int main(){ int s,a,b,c; int sum=0; for(s=100;s<1000;s++) { a=s/100; b=s%100/10; c=s%10; sum=pow(a,3)+pow(b,3)+pow(c,3); if(sum==s) { printf("%d\n",s); } }}
阅读全文
0 0
- 6.10 水仙花数
- 6.10 水仙花数
- 6.10水仙花数
- 6.10水仙花数
- 6.10水仙花数
- 6.10水仙花数
- 6.10水仙花数
- 6.10水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- 水仙花数
- -----hdu 4815 -01背包- Little Tiger vs. Deep Monkey
- vue使用Better-Scroll实现纵向滚动
- 权力的游戏,我是小股东,咋办?
- category 方法调用的顺序
- 如何让多个版本的Python和谐共处
- 6.10水仙花数
- SVN忽略本地文件不提交,同时不删除线上的文件
- Wind Power & Machine Learning
- 51nod 1523 非回文
- Java 实训 编写一个窗体程序模拟单词拼写
- POJ3669---跳炸弹(广搜)
- 拓扑排序(关键路径)
- ionic侧滑
- gpu 性能容量的单位是啥