题解 1016: [编程入门]水仙花数判断

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

水仙花数简单理解版

摘要:解题思路:理清题意,水仙花数是三位数的注意事项:太简单了参考代码:for i in range(100,999):    a = (i//100)    b =(i//10)%10    c = i%……

1016一行解(Python)

摘要:注意事项:强行一行,实际编程意义不大参考代码:for i in range(100, 999) : print(i) if sum(map(lambda x : x ** 3, list(map(in……

1016: [编程入门]水仙花数判断(C语言)

摘要:解题思路:在一个for循环内解决掉,重点就是求出各个位数,详见我的文章:如何求得一个三位整数的个十百位(C语言)-Dotcpp编程社区注意事项:①注意条件是三位数,即i初始化为100,<=999参考代……

使用pow函数求水仙花数

摘要:#include<stdio.h> #include<math.h> int main() {     int ave, gae;     int k1, k2, k3;     scan……

水仙花数判断

摘要: #include using namespace std; int main() { int a, b, c; for (int i = ……

1016-水仙花数判断 语言:C++

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){        int a,b,c=3; ……