编写题解 2848: 基因相关性,python超简单 摘要:(python学子仔细读题哦)n = float(input()) DNA1 = input() DNA2 = input() # 比对两条DNA序列 matching_pairs = 0 …… 题解列表 2024年03月29日 0 点赞 0 评论 738 浏览 评分:4.7
101010101010101010101单词翻转 摘要:解题思路:注意事项:参考代码:s=input().split()a=[]for i in range(len(s)): a.append(s[i][::-1])for j in a: pr…… 题解列表 2024年03月29日 0 点赞 0 评论 368 浏览 评分:0.0
利用列表max()函数求最大值 摘要:解题思路:注意事项:参考代码:def m(l): return max(l)l = list(map(float, input().split()))print("%.3f" % m(l))pr…… 题解列表 2024年03月28日 0 点赞 0 评论 435 浏览 评分:9.9
2880: 计算鞍点 摘要:参考代码:arr, arr2 = [], [] for _ in range(5): p1 = list(map(int, input().split())) arr.appen…… 题解列表 2024年03月28日 0 点赞 0 评论 644 浏览 评分:0.0
小白操作解决病历单 摘要:解题思路:无注意事项:101参考代码:c=input()b=[]d=""for i in c: if 'a' <= i <= 'z': …… 题解列表 2024年03月28日 1 点赞 0 评论 322 浏览 评分:0.0
2876: 矩阵交换行 摘要:解题思路:注意事项:参考代码:arr = [] for _ in range(5): p1 = input().split() arr.append(p1) m, n = ma…… 题解列表 2024年03月28日 0 点赞 0 评论 514 浏览 评分:0.0
2874: 行程长度编码 摘要:参考代码:s = input().upper() + " " count = 0 for i in range(len(s) - 1): if s[i] == s[i+1]: …… 题解列表 2024年03月28日 0 点赞 0 评论 456 浏览 评分:0.0
2875: 回文子串 注意时间限制 摘要:参考代码:s = input() + ' ' ans = [] str1 = "" len_1 = 0 len_2 = 0 while len_2 < len(s) // …… 题解列表 2024年03月28日 0 点赞 0 评论 272 浏览 评分:0.0
简单易理解,利用循环解决此题 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())d=0da=(1,3,5,7,8,10,12)xiao=(4,6,9,11)for i in range(1,…… 题解列表 2024年03月28日 1 点赞 0 评论 305 浏览 评分:9.9
python代码解决问题 摘要:解题思路:注意事项:参考代码:x1,y1,x2,y2,x3,y3,x4,y4=map(int,input().split())s1=(x2-x1)*(y2-y1)+(x4-x3)*(y4-y3)x_l…… 题解列表 2024年03月27日 0 点赞 0 评论 316 浏览 评分:0.0