摘要:
题解:dp[i][j]表示长度为i,匹配了j个的方案数,压缩成矩阵,转移即可。View Code 1 #include <iostream> 2 #include <cstring> 3 #include <cstdlib> 4 #include <cstdio> 5 #include <algorithm> 6 7 #define SIZE 21 8 9 using namespace std; 10 11 struct MT 12 { 13 int x,y; 14 int mt[SIZE][SIZE]; 15 void prt() 阅读全文
posted @ 2013-03-05 21:00
proverbs
阅读(1478)
评论(0)
推荐(0)

浙公网安备 33010602011771号