1016一行解(Python) 摘要:注意事项:强行一行,实际编程意义不大参考代码:for i in range(100, 999) : print(i) if sum(map(lambda x : x ** 3, list(map(in…… 题解列表 2022年11月04日 0 点赞 1 评论 451 浏览 评分:9.9
1016: [编程入门]水仙花数判断(C语言) 摘要:解题思路:在一个for循环内解决掉,重点就是求出各个位数,详见我的文章:如何求得一个三位整数的个十百位(C语言)-Dotcpp编程社区注意事项:①注意条件是三位数,即i初始化为100,<=999参考代…… 题解列表 2022年11月02日 0 点赞 0 评论 174 浏览 评分:6.0
使用pow函数求水仙花数 摘要:#include<stdio.h> #include<math.h> int main() { int ave, gae; int k1, k2, k3; scan…… 题解列表 2022年10月29日 0 点赞 0 评论 160 浏览 评分:9.9
题目 1016: [编程入门]水仙花数判断—常规求解方法 摘要:解题思路:while循环注意事项:指数用pow函数或者其他形式参考代码:#include<stdio.h> #include<math.h> int main(void) { int i…… 题解列表 2022年10月21日 0 点赞 0 评论 173 浏览 评分:0.0
[编程入门]水仙花数判断 最基础解法 摘要:解题思路:bw=i//100 sw=(i-bw*100)//10 gw=i-bw*100-sw*10注意事项:参考代码: for i in range(100,1000): bw=i…… 题解列表 2022年10月18日 0 点赞 0 评论 249 浏览 评分:7.0
水仙花数判断 摘要: #include using namespace std; int main() { int a, b, c; for (int i = …… 题解列表 2022年10月10日 0 点赞 0 评论 88 浏览 评分:0.0
1016: [编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <cmath> using namespace std; int main() { for (…… 题解列表 2022年10月08日 0 点赞 0 评论 126 浏览 评分:2.0
1016-水仙花数判断 语言:C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int a,b,c=3; …… 题解列表 2022年10月04日 0 点赞 0 评论 154 浏览 评分:0.0
"水仙花数判断"题解 摘要:解题思路:要判断一个数是不是水仙花数,就是在判断它的百、十、个位的立方是否等于它本身。要取一个数的百、十、个位:百:x/100;十:x%100/10;个:x%10.立方可以调用math.h库中的pow…… 题解列表 2022年09月11日 0 点赞 0 评论 328 浏览 评分:0.0
1016——————水仙花数判断 摘要:充分理解概念:**水仙花数"是指一个三位数 其各位数字立方和等于该本身** for i in range(100,1000): #三位数 if (int(str(i…… 题解列表 2022年09月06日 0 点赞 0 评论 275 浏览 评分:0.0