会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
清风紫雪
博客园
首页
新随笔
联系
订阅
管理
2021年2月21日
动态规划-线性DP&区间DP
摘要: 数字三角形 题意 算法思路 从倒数第二层向上,更新每层数的最大值,取决于其下一层的左右那个最大,一直更新知道最顶层,即可。 #include<bits/stdc++.h> using namespace std; int f[510][510]; int main() { int i,j,n; ci
阅读全文
posted @ 2021-02-21 11:54 清风紫雪
阅读(115)
评论(0)
推荐(1)
编辑
公告