1004: [递归]母牛的故事(python) 摘要:#### ~~~python m = [0]*55 m[1] = 1 m[2] = 2 m[3] = 3 m[4] = 4 def f(n): if n…… 题解列表 2024年10月23日 0 点赞 0 评论 733 浏览 评分:9.9
1039: [编程入门]宏定义之闰年判断(python) 摘要:#### ~~~python def islun(n): if n%4 == 0 and n%100 != 0: return 'L' if n%400…… 题解列表 2024年10月22日 0 点赞 0 评论 641 浏览 评分:9.9
1177: 三角形 摘要:解题思路:注意事项:参考代码:t = int(input())for x in range(t): n = int(input()) l = [] l = [ list(map(in…… 题解列表 2024年10月21日 1 点赞 0 评论 238 浏览 评分:0.0
菜鸡暴力解法,直接遍历出所有坐标 摘要:解题思路:遍历出需要挪树的具体坐标,再删除列表中重复的坐标,其值去减去其树的总数,就等于剩下的树注意事项:参考代码:# a表示这段路一共有多少棵树,b表示这段路一共有多少个区域a,b = map(in…… 题解列表 2024年10月20日 0 点赞 0 评论 388 浏览 评分:9.9
python7行解决 摘要:解题思路:注意事项:参考代码:a = [int(i) for i in input().split()]b = int(input())c = 0for i in a: if b + 30 >=…… 题解列表 2024年10月20日 1 点赞 0 评论 565 浏览 评分:9.9
求平均工资 摘要:参考代码:n=int(input()) nn=n sum=0 while n!=0: a=int(input()) sum+=a n-=1 print(sum//…… 题解列表 2024年10月19日 0 点赞 0 评论 490 浏览 评分:0.0
利用python循环和数列解决 摘要:注意事项:菜鸡解法,分别看需要满足的条件依次进行解题写代码来满足他参考代码:a = int(input())b = []f = []c = 0d = 0e = 0for i in range(a): …… 题解列表 2024年10月18日 0 点赞 0 评论 333 浏览 评分:9.9
利用for循环与map函数,四行输出水仙花数代码 摘要:解题思路:注意事项:不会可以问,看到会回复参考代码:for i in range(100,999): a,b,c=map(int,str(i)) if i==a**3+b**3+c**3:…… 题解列表 2024年10月17日 1 点赞 0 评论 484 浏览 评分:9.9
大数Python写 摘要:参考代码:while True: n=int(input()) if n==0: break else: if n%17==0: 题解列表 2024年10月17日 0 点赞 0 评论 416 浏览 评分:0.0
2002: 计算数字个数(python) 摘要:### 无需多言,代码如下: ~~~python print(len([i for i in input() if i.isdigit()])) ~~~ ![](/image_edi…… 题解列表 2024年10月15日 1 点赞 0 评论 268 浏览 评分:9.9