[编程入门]水仙花数判断 (Python代码) 摘要:```python for i in range(100,1000): #100到999 g=i%10 #个 s=i//10%10 #十 b=i//100 …… 题解列表 2019年11月20日 0 点赞 0 评论 2135 浏览 评分:8.8
小白也能懂的入门代码 摘要:解题思路:注意事项:参考代码:for i in range(100,1000): a,b,c=str(i) if int(a)**3+int(b)**3+int(c)**3==int(i)…… 题解列表 2022年05月02日 0 点赞 0 评论 451 浏览 评分:8.7
[编程入门]水仙花数判断-题解(Java代码) 摘要:```java public class Main { public static void main(String[] args) { // 水仙花数so easy too happy …… 题解列表 2020年05月15日 0 点赞 0 评论 1259 浏览 评分:8.4
[编程入门]水仙花数判断-题解(Python代码) 摘要:解题思路:注意事项:参考代码:s_sum = 0for i in range(100,1000): for ch in str(i): s_sum += (eval(ch))**3…… 题解列表 2021年01月09日 0 点赞 0 评论 798 浏览 评分:8.4
水仙花数判断-题解(python代码) 摘要:参考代码:for i in range(100,1000): #遍历所有三位数 &nb 题解列表 2021年10月15日 0 点赞 0 评论 631 浏览 评分:8.3
Manchester- C语言程序设计教程(第三版)课后习题6.6 摘要:解题思路:判断100 到999的所有数,是水仙花数,输出;代码好久之前写的了,没写题解,现在补一下,讲的没当时做的清楚;注意事项:参考代码:#include<stdio.h> #include<ma…… 题解列表 2017年12月06日 23 点赞 2 评论 1199 浏览 评分:8.0
[编程入门]水仙花数判断-题解(C语言代码) 摘要:##### 解题思路: 据题可得 ,它所要求的是在100到999之间选出满足 “水仙花数” 这一条件的数 ,因为水仙花数具有相同的特征 ,我想到了要建立一个满足 水仙花数 的一函数 ,然后让函数返回…… 题解列表 2019年10月15日 0 点赞 0 评论 877 浏览 评分:8.0
Kanna-水仙花数判断--C 摘要: #include int main(){ int h,t,b; int i; //i从100开始到999,限定了i是3位数 …… 题解列表 2019年11月21日 0 点赞 0 评论 1168 浏览 评分:8.0
[编程入门]水仙花数判断 (C++代码) 摘要:```cpp #include #include #include using namespace std; int main() { int i;int s; for (i=10…… 题解列表 2019年11月23日 0 点赞 0 评论 823 浏览 评分:8.0
水仙花数判断 摘要:解题思路: 1.求水仙花数的关键是对个位上的数、十位上的数和百位上的数的寻找 1.1求个位上的数可以直接该数字对10取余。即为个位上的数 题解列表 2021年08月03日 0 点赞 0 评论 496 浏览 评分:8.0