摘要: 简单的dp..dp(i,j) = max(dp(x,y))+cnt[i][j], (x,y)->(i,j)是合法路径.设f(i)= max(dp(x,y))(1≤x≤N,1≤y≤i), g(i,j) = max(dp(i, k))(1≤k≤j)那么dp(i,j) = max(f(j+delta), ... 阅读全文
posted @ 2015-09-17 21:34 JSZX11556 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 没什么好说的...---------------------------------------------------------------------#include#include#includeusing namespace std;typedef long long ll;int MOD... 阅读全文
posted @ 2015-09-17 20:54 JSZX11556 阅读(231) 评论(0) 推荐(0) 编辑