1016: [编程入门]水仙花数判断 稍稍复杂的循环判断 摘要:解题思路:就是简单循环判断题的加强版,设置范围,然后循环就好了。注意事项:参考代码:for i in range(100,1000): string=str(i) a=string[0] …… 题解列表 2022年12月29日 0 点赞 0 评论 482 浏览 评分:0.0
新手常规简易 摘要:解题思路:常规注意事项:参考代码:#include<stdio.h>int main(){ int num=100; int a,b,c; for(num==100;(99<num)…… 题解列表 2022年12月23日 0 点赞 0 评论 392 浏览 评分:0.0
水仙花数的判断 摘要:解题思路:获取个位数:对数字取模于10获得个位数(%10)获取十位数:先整除10得到两位数(/10)再取模于10得到十位(%10)获取百位数:直接整除于100;注意事项:参考代码:#include<i…… 题解列表 2022年12月14日 0 点赞 0 评论 489 浏览 评分:0.0
水仙花数简单理解版 摘要:解题思路:理清题意,水仙花数是三位数的注意事项:太简单了参考代码:for i in range(100,999): a = (i//100) b =(i//10)%10 c = i%…… 题解列表 2022年12月12日 0 点赞 2 评论 833 浏览 评分:9.9
编写题解 1016: [编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,i; for(i=100;i<=999;i++) { a=i/100; b=i/10%1…… 题解列表 2022年11月23日 0 点赞 0 评论 334 浏览 评分:0.0
1016一行解(Python) 摘要:注意事项:强行一行,实际编程意义不大参考代码:for i in range(100, 999) : print(i) if sum(map(lambda x : x ** 3, list(map(in…… 题解列表 2022年11月04日 0 点赞 1 评论 764 浏览 评分:9.9
1016: [编程入门]水仙花数判断(C语言) 摘要:解题思路:在一个for循环内解决掉,重点就是求出各个位数,详见我的文章:如何求得一个三位整数的个十百位(C语言)-Dotcpp编程社区注意事项:①注意条件是三位数,即i初始化为100,<=999参考代…… 题解列表 2022年11月02日 0 点赞 0 评论 439 浏览 评分:6.0
使用pow函数求水仙花数 摘要:#include<stdio.h> #include<math.h> int main() { int ave, gae; int k1, k2, k3; scan…… 题解列表 2022年10月29日 0 点赞 0 评论 594 浏览 评分:9.9
题目 1016: [编程入门]水仙花数判断—常规求解方法 摘要:解题思路:while循环注意事项:指数用pow函数或者其他形式参考代码:#include<stdio.h> #include<math.h> int main(void) { int i…… 题解列表 2022年10月21日 0 点赞 0 评论 524 浏览 评分:0.0
[编程入门]水仙花数判断 最基础解法 摘要:解题思路:bw=i//100 sw=(i-bw*100)//10 gw=i-bw*100-sw*10注意事项:参考代码: for i in range(100,1000): bw=i…… 题解列表 2022年10月18日 0 点赞 0 评论 556 浏览 评分:7.0