摘要: Problem : http://acm.hdu.edu.cn/showproblem.php?pid=1312简单搜索,不多说了...#includeint w,h,ans=0;char g[20][25];bool f(int x,int y){ return (x>=0 && x=0 && y<w);}void dfs(int x,int y){ ans++; g[x][y]='#'; for(int dx=-1;dx<=1;dx++) for(int dy=-1;dy<=1;dy++) if(dx==0 ^ dy= 阅读全文
posted @ 2014-02-09 19:52 Cshhr 阅读(162) 评论(0) 推荐(0) 编辑