随笔分类 -  ACM----DP

摘要:题目链接 阅读全文
posted @ 2018-04-27 20:41 朤尧 阅读(281) 评论(0) 推荐(0)
摘要:#include using namespace std; const static int N = 102; int map[N][N] = {0}; int mar[N][N] = {0}; int dp(int,int); int row,col; int main() { while(cin>>row>>col) { int i,j; in... 阅读全文
posted @ 2017-02-14 11:23 朤尧 阅读(243) 评论(0) 推荐(0)
摘要:#include #include using namespace std; const static int N = 101; int ar[N][N] = {0}; void dp(int,int); int n; int main() { int c;cin>>c; while(c--) { memset(ar,0,sizeof(ar)); ... 阅读全文
posted @ 2017-02-14 11:16 朤尧 阅读(227) 评论(0) 推荐(0)
摘要:注意:dp[i][j]初始化的时候不能小于0xffffff明显大于2^15但是吧再小就WA了 阅读全文
posted @ 2017-02-14 11:14 朤尧 阅读(247) 评论(0) 推荐(0)