编写题解 1016: [编程入门]水仙花数判断
摘要:解题思路:注意事项:参考代码:for i in range(100,1000): if i == pow(int(str(i)[0]),3)+pow(int(str(i)[1]),3)+p……
水仙花数字while循环(C语言)
摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include "math.h"int main(){ int i=2; while (i < 1000) { if ((p……
简单易懂的水仙花(三行python)
摘要:解题思路:一看就会注意事项:一看就会参考代码:for i in range(100,1000): if i==(i//100)**3+(i//10%10)**3+(i%10)**3: ……
编写题解 1016: [编程入门]水仙花数判断
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int x,y,z; for(int a=100; a<1000; ……
1016: [编程入门]水仙花数判断 稍稍复杂的循环判断
摘要:解题思路:就是简单循环判断题的加强版,设置范围,然后循环就好了。注意事项:参考代码:for i in range(100,1000): string=str(i) a=string[0] ……