自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(2)
  • 收藏
  • 关注

原创 钢条(木条)切割问题

import time# the price of a piece of steel of a certain length, which is the indexp=[1,5,8,9,10,17,17,20,24,30]# the length of the first piece of a best split given a certain length of the steel, which is the indexbestSplit=[]# the length of the s.

2021-07-09 14:04:20 174

原创 输出全排列

用python语言,以递归的方式输出全排列。代码较简洁。算法复杂度O(n!),最优。最大递归深度为n。import copyout = []def permutation(a): global out if len(a) == 1: out.append(a[0]) print(out) out.pop() return for i in range(len(a)): t = copy.cop...

2021-07-08 23:11:39 108

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除