牛牛牛牛牛每一天
牛牛牛牛牛每一天
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛牛牛牛牛每一天的博客
全部文章
(共29篇)
python3题解 -动态规划目标减少 | #牛群喂食#
from re import X # # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param candidates int整型一维数组 # @param target int整型 # @return int整型二维数组 # class Solut...
2023-12-19
0
224
题解 | #颜色分类#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param colors int整型一维数组 # @return int整型一维数组 # class Solution: def sortColor(self , colors: List[i...
2023-12-17
0
246
题解 | #装箱问题#
import sys # for line in sys.stdin: # a = line.split() # print(int(a[0]) + int(a[1])) V = int(input()) n = int(input()) v = [] for i in ra...
2023-12-13
0
276
题解 | #兑换零钱#
import sys # for line in sys.stdin: # a = line.split() # print(int(a[0]) + int(a[1])) # t= input().split() # n = t[0] # aim = t[1] n, aim = m...
2023-12-13
1
209
题解 | #主持人调度(一)#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param schedule int整型二维数组 # @return bool布尔型 # class Solution: def hostschedule(self , schedule: L...
2023-12-12
0
238
题解 | #买卖股票的最好时机(三)#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # 两次交易所能获得的最大收益 # @param prices int整型一维数组 股票每一天的价格 # @return int整型 # class Solution: def maxProfit(self...
2023-12-12
0
249
题解 | #买卖股票的最好时机(二)#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # 计算最大收益 # @param prices int整型一维数组 股票每一天的价格 # @return int整型 # class Solution: def maxProfit(self , pric...
2023-12-12
0
226
题解 | #买卖股票的最好时机(一)#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param prices int整型一维数组 # @return int整型 # class Solution: def maxProfit(self , prices: List[int])...
2023-12-12
0
206
题解 | #跳台阶#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param number int整型 # @return int整型 # class Solution: def jumpFloor(self , number: int) -> int...
2023-12-12
0
186
题解 | #跳台阶#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param number int整型 # @return int整型 # class Solution: def jumpFloor(self , number: int) -> int...
2023-12-12
0
190
首页
上一页
1
2
3
下一页
末页