摘要: View Code //数据小,dfs+回溯,能够水过#include <iostream>#include <cstring>#include <queue>using namespace std;const int MAX = 10;char map[MAX][MAX];int n,ans;bool can(int x,int y){ int i,j; for(i = x+1;i < n;++i) { if(map[i][y] == 'Z') return false; if(map[i][y] == 'X') br 阅读全文
posted @ 2011-03-13 14:03 c++fans 阅读(186) 评论(0) 推荐(0) 编辑