小白也能懂的入门代码 摘要:解题思路:注意事项:参考代码:for i in range(100,1000): a,b,c=str(i) if int(a)**3+int(b)**3+int(c)**3==int(i)…… 题解列表 2022年05月02日 0 点赞 0 评论 587 浏览 评分:8.7
[编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,i; for(i=100; i<1000; i++){ a = i…… 题解列表 2022年04月29日 0 点赞 0 评论 485 浏览 评分:9.9
水仙花数判断 摘要:解题思路:根据水仙花数的特点注意事项:缩进参考代码:for i in range(100,1000): a = i//100 b = i%100//10 c = i%10 if…… 题解列表 2022年04月25日 0 点赞 0 评论 558 浏览 评分:0.0
[编程入门]水仙花数判断-题解(各语言代码) 摘要:**python** ```python print(*filter(lambda x:sum(map(lambda y:int(y)**3,str(x)))==x,range(100,1000)…… 题解列表 2022年04月14日 0 点赞 0 评论 627 浏览 评分:0.0
while循环的理解 摘要:解题思路:注意事项:参考代码:#include"stdio.h"int pow(int n) { int sum = 1; int i = 0; while (i < 3) { sum *= n; …… 题解列表 2022年04月12日 0 点赞 0 评论 468 浏览 评分:0.0
编写题解 1016: [编程入门]水仙花数判断(python超短易理解) 摘要:解题思路:注意事项:参考代码:for i in range(100, 1000): if pow(int(str(i)[0]), 3) + pow(int(str(i)[1]), 3…… 题解列表 2022年04月09日 0 点赞 0 评论 707 浏览 评分:8.0
水仙花判断1016 摘要:解题思路:注意事项:这次不是判断你输出的数是不是水仙花而是在100到1000之内都有哪些水仙花参考代码:#include<stdio.h>int main(){ int a,b,c; for(int …… 题解列表 2022年04月03日 0 点赞 0 评论 637 浏览 评分:9.9
[编程入门]水仙花数判断(C语言) 摘要:解题思路: 1 )先利用for循环求出每一个三位数的百位,十位,个位的数是多少,其中利用要 / 取整, %取余 2)再利用for循环里面的if语句,利用水仙花数的公…… 题解列表 2022年04月02日 0 点赞 0 评论 779 浏览 评分:0.0
[编程入门]水仙花数判断 摘要:解题思路:将三位数每一位分离出来是重点注意事项:参考代码:for i in range(100,1000): a=i%10 b=(i%100)/10 c=i/100 if i=…… 题解列表 2022年03月27日 0 点赞 0 评论 453 浏览 评分:0.0
【编程入门】水仙花数判断 摘要:解题思路:水仙花数是三位数,n的范围为100-999 定义百位为b,十位为s,个位为g, g=n%10; s=n/10%1…… 题解列表 2022年03月20日 0 点赞 0 评论 534 浏览 评分:9.9