题解 1120: C语言训练-"水仙花数"问题2

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

筛选

100-999之间的水仙花数

摘要:解题思路:把每个位置拿出来注意事项:参考代码:#include<stdio.h>int main(){    int i,a,b,c;    for(i=100;i<1000;i++){    a=i……

C语言练习--水仙花2

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){    int i;    for(i=100;i<=999;i++)    ……

Yu: 1120水仙花数

摘要: **解题思路:** 使用while循环对每一位数拆解 **参考答案** ```c++ #include using namespace std; int main(){ ……

无聊的星期六

摘要:解题思路:注意事项:参考代码:ci=0 for x in range(100,999):     x=str(x)     if int(x)==sum(((int(x[i])**3) for ……