会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
墨鳌
算法+数据结构=整个世界
博客园
首页
新随笔
联系
订阅
管理
2020年2月21日
C++-POJ2955-Brackets[DP]
摘要: 题意就是,找出最长合法子括号序列 容易想到设f[l][r]为l~r的最长合法子括号序列的长度 然后从短的状态往长的状态枚举,不断更新答案就可以了 1 //#include<bits/stdc++.h> 2 #include <cstdio> 3 #include <cstring> 4 #inclu
阅读全文
posted @ 2020-02-21 21:49 墨鳌
阅读(157)
评论(0)
推荐(0)
编辑
公告