牛客517233658号
牛客517233658号
全部文章
题解
归档
标签
去牛客网
登录
/
注册
牛客517233658号的博客
全部文章
/ 题解
(共6篇)
题解 | #字母收集#
def check(a): if a=="l": return 4 elif a=="o": return 3 elif a=="v": return 2 elif a=="e": return 1 ...
Python3
2021-10-27
0
421
题解 | #【模板】二维前缀和#
a=list(map(int, input().split( ))) p=[] dp=[[0 for i in range(a[1]+1)] for j in range(a[0]+1)] for i in range(a[0]): p.append(list(map(int, input(...
Python3
2021-10-27
0
352
题解 | #接雨水问题#
# # max water # @param arr int整型一维数组 the array # @return long长整型 # class Solution: def maxWater(self , arr ): # write code here an...
Python3
2021-10-26
2
412
题解 | #括号生成#
# # # @param n int整型 # @return string字符串一维数组 # class Solution: def generateParenthesis(self , n ): # write code here res = []#保存...
Python3
2021-10-23
0
399
题解 | #最长公共子串#
# # longest common substring # @param str1 string字符串 the string # @param str2 string字符串 the string # @return string字符串 # class Solution: def LCS(s...
Python3
2021-10-18
0
628
题解 | #火车进站#
while True: try: def dfs(wait, stack, leave,ans): if len(wait) == 0 and len(stack) == 0: ans.append(leave) ...
Python3
2021-10-07
2
729