摘要: 题意就是,找出最长合法子括号序列 容易想到设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) 编辑