摘要:
//f[i][j]表示从(i,j)开始滑的路径 #include <cstring> #include <iostream> #include <algorithm> using namespace std; const int N = 310; int n, m; int g[N][N]; int 阅读全文
posted @ 2019-11-21 16:13
晴屿
阅读(77)
评论(0)
推荐(0)
摘要:
//f[u][0]是所有以u为根的子树中选择,并且不选u这个点的方案 //f[u][1]是所有以u为根的子树中选择,并且 选u这个点的方案 #include <cstring> #include <iostream> #include <algorithm> using namespace std; 阅读全文
posted @ 2019-11-21 16:12
晴屿
阅读(102)
评论(0)
推荐(0)
摘要:
//f[i][j]表示从0走到j,走过的所有点是i(一个二进制数)的所有路径 #include <cstring> #include <iostream> #include <algorithm> using namespace std; const int N = 20, M = 1 << N; 阅读全文
posted @ 2019-11-21 16:11
晴屿
阅读(111)
评论(0)
推荐(0)
摘要:
#include<bits/stdc++.h> using namespace std; const int N = 12, M = 1 << N; int st[M]; long long f[N][M]; //用f[i][j]记录第i列第j个状态。j状态位等于1表示上一列有横放格子,本列有格子捅 阅读全文
posted @ 2019-11-21 16:11
晴屿
阅读(111)
评论(0)
推荐(0)