摘要:
#define _CRT_SECURE_NO_WARNINGS #include #include #include #include using namespace std; int T; char str[1005]; int len; int s[1005][1005]; // s[i][j] == 1 --> str[i..j] is palindrome int d[1... 阅读全文
摘要:
参考 http://www.cnblogs.com/Kiraa/p/5510757.html http://www.cnblogs.com/zhaopAC/p/5159950.html 根据题目说明中的这句话 reduce the total system cost by eliminating s 阅读全文
摘要:
p400 页最后一段 When j >= i , we need to select a root kr from among ki ... kj and then make an optimal binary search tree with keys ki ... kr-1 as its lef 阅读全文