【动态规划3】区间与环形动态规
dllglvzhenfeng
这个作者很懒,什么都没留下…
展开
-
P3146 [USACO16OPEN]248 G(python3实现)
[USACO16OPEN]248 G - 洛谷 """ P3146 [USACO16OPEN]248 G(python3实现) https://www.luogu.com.cn/problem/P3146 """ f=[[0] * 310 for _ in range(310)] n=int( input() ) a=[0]*310 b=[] #b=list( map( int,input().split() ) ) for i in range(n):原创 2022-02-04 22:08:36 · 147 阅读 · 0 评论 -
P1880 [NOI1995] 石子合并(python3实现)
[NOI1995] 石子合并 - 洛谷 """ P1880 [NOI1995] 石子合并(python3实现) https://www.luogu.com.cn/problem/P1880 """ import math f=[[2147483647] * 310 for _ in range(310)] f1=[[-1] * 310 for _ in range(310)] a=[0]*310 s=[0]*310 n=int(input()) #a.append(0) b=list(原创 2022-02-04 15:05:42 · 573 阅读 · 0 评论