随笔分类 - ——1.区间DP
POJ - 1390 &&UVA - 10559 Blocks(动态规划)
摘要:Some of you may have played a game called 'Blocks'. There are n blocks in a row, each box has a color. Here is an example: Gold, Silve...
阅读全文
区间DP模板+POJ2955 Brackets
摘要:操作模板:for (int len = 1; len #include#include#define ll long longusing namespace std;char s[120];int a[120];int dp[120][120];int main(){...
阅读全文