向光而行的华夫饼很爱看剧
向光而行的华夫饼很爱看剧
全部文章
分类
题解(5)
归档
标签
去牛客网
登录
/
注册
向光而行的华夫饼很爱看剧的博客
全部文章
(共4篇)
题解 | #接雨水问题#
# by emz # max water # @param arr int整型一维数组 the array # @return long长整型 # class Solution: def maxWater(self , arr ): # write code here ...
Python3
2021-09-17
2
337
题解 | #最长公共前缀#
# # # @param strs string字符串一维数组 # @return string字符串 # class Solution: def longestCommonPrefix(self , strs ): # write code here i...
Python3
2021-09-16
0
283
题解 | #两数之和#
# -*- coding:utf-8 -*- a = eval(input()) s = [] for i in a: if i[:3] == "PSH": s.append(i[3:]) print(",".join(s))
Python3
2021-09-16
0
406
题解 | #两数之和#
a = eval(input()) s,sum1 = a[0],a[1] for i in range(len(s)): if sum1 - s[i] in s[i+1:]: j = int(s[i+1:].index(sum1-s[i])+2+i) prin...
Python3
2021-09-16
0
276