摘要:
看了别人代码后才想明白的。还得多加练习搜索题!#include <iostream>using namespace std;char Map[9][9];bool place_c[9];int number_p;int tol;int n,k;bool can_place(int i,int j){ return !place_c[j]&&Map[i][j]=='#';}void DFS(int i){ if(number_p==k) { tol++; return; } if(i>=n) return; int j... 阅读全文
posted @ 2013-04-19 13:54
algorithms爱好者
阅读(83)
评论(0)
推荐(0)

浙公网安备 33010602011771号