1120: C语言训练-"水仙花数"问题2 摘要:```cpp #include using namespace std; int main() { int num, a, b, c; for ( num = …… 题解列表 2022年10月26日 0 点赞 0 评论 137 浏览 评分:0.0
Manchester-"水仙花数"问题2 摘要:解题思路:此代码在水仙花数问题1里面有描述,具体过程就不解释了;注意事项:参考代码:思路1:#include <stdio.h> #include <math.h> void panduan( i…… 题解列表 2017年12月09日 14 点赞 0 评论 2008 浏览 评分:0.0
编写题解 1120: C语言训练-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<ctype.h>using namespace std;int main(){ int a,b,c; f…… 题解列表 2022年03月20日 0 点赞 0 评论 193 浏览 评分:0.0
编写题解 1120: C语言训练-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int n,g,s,b;for(int i=100;i<100…… 题解列表 2024年05月25日 0 点赞 0 评论 84 浏览 评分:0.0
C语言训练-"水仙花数"问题2 摘要:参考代码:#include<stdio.h>#include<math.h>main(){ int n,a,b,c; for(n=100;n<=999;n++) { …… 题解列表 2021年04月01日 0 点赞 0 评论 139 浏览 评分:2.0
C语言训练-"水仙花数"问题2-题解(Python代码) 摘要:题目已经给出了水仙花数的判定法,直接用filter筛选即可。 ```python print(*filter(lambda x:x==((x%10)**3+((x%100)//10)**3+(x/…… 题解列表 2019年09月07日 0 点赞 0 评论 815 浏览 评分:4.7
简单便捷解决水仙花问题 摘要:解题思路此题要求水仙花数的总数,首先该用方法,即用循环的方法来便利各个数。之后确定范围。水仙花数是一个三位数,即它在100-999之间,因此,首先应确定范围。之后,了解各个位数的表达方式,用pytho…… 题解列表 2022年07月19日 0 点赞 0 评论 141 浏览 评分:6.0
C语言训练-“水仙花数”问题2 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int a, b, c; for (a = 0; a < 10; a++) for (b …… 题解列表 2021年12月22日 0 点赞 0 评论 135 浏览 评分:6.0
C语言训练-"水仙花数"问题2 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { int n; i…… 题解列表 2018年06月01日 0 点赞 0 评论 470 浏览 评分:6.0
C语言训练-"水仙花数"问题2 摘要:解题思路: 难点主要在各位数字表示注意事项:注意for循环位置参考代码:#include<stdio.h>int main(){ int b,c,d; int i; for(i=100;i<999;i…… 题解列表 2022年01月07日 0 点赞 1 评论 763 浏览 评分:6.0