第一道状态压缩DP
参考acCry大牛的题解
#include <cstdio>
#include <cstring>
#include <cmath>
using namespace std;
const int MAXS = 65535,MAXN = 15 , mod = 100000000;
int dp[MAXN][MAXS],line[MAXS],map[MAXN],m,n,s;
int init()///初始化
{
memset(dp,0,sizeof(dp));
s=0;
memset(line,0,sizeof(line));
}
bool ck(int x,int y) ///check line
{
x|=y;
if((x<<1)&x) return 0;
else return 1;
}
void fl()///第一次处理
{
for(int i=0;i<(1<<n......
阅读全文