题解 | 3005: 糖果游戏(左右指针法简单易懂) 摘要:### 代码 ```python li = list(map(int,input().strip().split())) lenth = len(li) for i in rang…… 题解列表 2022年12月16日 0 点赞 0 评论 467 浏览 评分:9.9
DNA【题解】 摘要:参考代码:a,b=map(int,input().strip().split())print(a,b)'''空格个数'''space=0'…… 题解列表 2022年12月14日 0 点赞 0 评论 305 浏览 评分:9.9
python, 很简单 摘要:解题思路:注意事项:参考代码:print('**************************')print('Hello World!')print('**…… 题解列表 2022年12月13日 0 点赞 0 评论 185 浏览 评分:0.0
水仙花数简单理解版 摘要:解题思路:理清题意,水仙花数是三位数的注意事项:太简单了参考代码:for i in range(100,999): a = (i//100) b =(i//10)%10 c = i%…… 题解列表 2022年12月12日 0 点赞 2 评论 513 浏览 评分:9.9
python简单易懂;求指定数字相同的数的个数 摘要:解题思路:用列表遍历用if判断出有用的数据把数据放到之前设置的空变量输出注意事项:无,都是基础参考代码:n = int(input());u = 0;s = list(map(int,input().…… 题解列表 2022年12月12日 0 点赞 0 评论 478 浏览 评分:9.9
python 简单易懂的求平均年龄-题解 摘要:解题思路: 用for循环来输入注意事项: 输入的是个整数(int)参考代码: n = int(input());s=k=0for i in range(n): x = int(input())…… 题解列表 2022年12月10日 0 点赞 4 评论 919 浏览 评分:6.2
2793: 点和正方形的关系 摘要:解题思路:注意事项:参考代码:x,y = map(int,input().strip().split())if (x > 1 or x < -1) or (y > 1 or y < -1): p…… 题解列表 2022年12月09日 0 点赞 0 评论 548 浏览 评分:9.9
1039: [编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:1.使用函数def LEAP_YEAR(y): if y % 400 == 0 or (y % 4 == 0 and y % 100 != 0): p…… 题解列表 2022年12月08日 0 点赞 0 评论 345 浏览 评分:0.0
编写题解:数的读法【Python】 摘要:解题思路:每四位分开读,具体见代码和注释参考代码:d = {'1':'yi', '2':'er', '3':'s…… 题解列表 2022年12月07日 0 点赞 0 评论 360 浏览 评分:10.0
编写题解:分解质因数【Python】 摘要:解题思路:首先自定义函数判断是否为质数;分解质因数时:先找最小质因数flag,然后递归找n//flag的最小质因数参考代码:# 自定义函数来判断是否是质数 def isPrime(n): …… 题解列表 2022年12月07日 0 点赞 0 评论 177 浏览 评分:9.9