牛客86289232号
牛客86289232号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客86289232号的博客
全部文章
(共3篇)
题解 | DNA序列
s = input() n = int(input()) maxcount = 0 pos = 0 for i in range(0, len(s)-n+1): cnt = s[i:i+n].count('C')+s[i:i+n].count('G') if cnt > max...
2025-09-27
0
32
题解 | 小苯送礼物
n,k = map(int,input().split(' ')) l = [] for i in range(n): x,y = map(int,input().split(' ')) l.append((i+1, x, y)) l1 = sorted(l, key = lambd...
2025-09-24
0
28
题解 | 分数线划定
while 1: try: m,n = map(int,input().split(' ')) dic = {} p = round(n*1.5//1) #进入面试的人数 = 计划录取人数n的150%再取整,这个要注意! fo...
2025-09-22
0
17