摘要: 终于通过了啊,代码有些长,不过它是我自己做的第一道状态压缩题目,自主创作的#include "iostream"#include "string.h"#include "algorithm"using namespace std;int dp[15][177147];int n,map[15][15];bool init(int a){ for(int i=0;i0){ if(map[0][i]==0)return 0; if(i==n-1)return 1; if((a&(10)return 0; } } return 1; 阅读全文
posted @ 2013-09-06 15:04 龙城星 阅读(208) 评论(0) 推荐(0) 编辑