摘要: 1 #include"cstring" 2 #include"cstdio" 3 const int maxn=20+5; 4 char tile[maxn][maxn];//方块格子 5 int m,n,idx[maxn][maxn];//m行n列 ,idx判断是否访问过 6 int a[]={-1,0,1,0}; 7 int b[]={0,-1,0,1};//移动 8 ... 阅读全文
posted @ 2016-05-09 18:58 Hutonm 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1 #include"iostream" 2 #include"cstring" 3 using namespace std; 4 #define MAXN 20+5 5 int C[MAXN][MAXN]; 6 int vis[MAXN]; 7 int N; 8 int ans; 9 void dfs(int id,int data){ 10 vis[id]=1; 1... 阅读全文
posted @ 2016-05-09 12:15 Hutonm 阅读(149) 评论(0) 推荐(0) 编辑