摘要:
最主要的是分清楚从一个点遍历到周围的点,并且将遍历过的点做好标记。还有就是弄清楚分界。#include using namespace std;char map[105][105];int n,m;int dy[10] = {-1,-1,-1,0,0,1,1,1};int dx[10] = {-1,0,1,-1,1,-1,0,1};int judge(int x,int y){ if(y m|| x n) { return 0; } return 1;}void dfs(int x, int y) { map[x][y] = -1; for(i... 阅读全文
posted @ 2013-07-21 21:06
T天天T
阅读(190)
评论(0)
推荐(0)
浙公网安备 33010602011771号