统计满足条件的4位数个数 摘要:解题思路:注意事项:参考代码:n = int(input())l = list(map(int,input().split()))count = 0for i in l: a = i%10 …… 题解列表 2024年07月30日 0 点赞 0 评论 610 浏览 评分:0.0
题解 2815: 求特殊自然数 摘要:解题思路:注意事项:参考代码:def switch_n(n,d): l = [] while n > 0: l.append(str(n % d)) n = n…… 题解列表 2024年07月30日 0 点赞 0 评论 462 浏览 评分:0.0
题解 2814: 正常血压 摘要:解题思路:注意事项:参考代码:n = int(input())c = 0max = 0while n: a,b = map(int,input().split()) if 90 <= a …… 题解列表 2024年07月30日 0 点赞 0 评论 574 浏览 评分:0.0
题解 2813: 药房管理 摘要:解题思路:注意事项:参考代码:m = int(input())n = int(input())t = list(map(int,input().split()))w = 0c = 0for i in …… 题解列表 2024年07月30日 0 点赞 0 评论 366 浏览 评分:0.0
优质题解,有解析 摘要:解题思路:为了解决这个问题,我们需要构建一个图,其中节点是点,边是两点之间的连线,边的权重是两点之间的直线距离。由于我们需要找到从源点到目标点的最短路径,我们可以使用Dijkstra算法(适用于有权图…… 题解列表 2024年07月30日 0 点赞 0 评论 423 浏览 评分:0.0
使用max函数 摘要:解题思路:注意事项:参考代码:l = input().split() # 读取输入并分割成列表 t = [] # 创建一个空列表 # 使用列表推导式将 l 中的每个字符串转换为浮点数,并添…… 题解列表 2024年07月28日 0 点赞 0 评论 1027 浏览 评分:0.0
python方法解决 摘要:解题思路:注意事项:参考代码:import mathl = input().split()s = 0if l[1] == 'y': s = 5a = int(l[0])if a …… 题解列表 2024年07月28日 0 点赞 0 评论 771 浏览 评分:0.0
含k个3的数的解 摘要:解题思路:注意事项:参考代码:m = int(input())k=int(input())if m%19==0: m=str(m) count=m.count('3') …… 题解列表 2024年07月28日 0 点赞 0 评论 400 浏览 评分:0.0
6行:万花丛中过,片叶不沾身 摘要:解题思路:注意事项:参考代码:word=input()result=""for i in range(len(word)-1): result += chr(ord(word[i])+ord(w…… 题解列表 2024年07月25日 0 点赞 0 评论 777 浏览 评分:0.0
12行:万花丛中过,片叶不沾身 摘要:解题思路:注意事项:参考代码:n=int(input())def rule(p1,p2): if p1==p2: return "Tie" elif (p1=="Scisso…… 题解列表 2024年07月25日 0 点赞 0 评论 724 浏览 评分:9.9