牛客研究僧
牛客研究僧
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客研究僧的博客
全部文章
(共3篇)
题解 | 迷宫问题
''' 这里的题目只是一种走法 输入:迷宫 建立网络 ''' def move(x,y,n,m,matrix,steps): if x==n-1 and y==m-1: return True directions=[(0,1),(0,-1),(1,0),(-1,0)...
2025-05-30
0
28
题解 | 最小循环节
print(len(set(input())))
2025-03-05
3
55
题解 | 不要三句号的歪
lst=[x for x in input().split(',')] temp=lst.index('...') b=int(lst[temp+1])-int(lst[temp-1])-1 print(b)
2025-03-04
0
53