![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
搜索
欧拉士大夫
在校期间是渣渣ACMer,现在是一名FPGAer/ICer。热爱新技术。
展开
-
hud 1312 Red and Black
题目: 链接:点击打开链接题意: DFS搜索算法: dfs思路: 简单题代码:#include#include#includeusing namespace std;int w,h;char s[30][30];int vis[30][30];int cnt;void dfs(int x,int y){ if原创 2014-05-15 18:59:58 · 752 阅读 · 0 评论 -
hdu 1241 Oil Deposits
题目: 链接:点击打开链接思路: 搜索入门题。代码:#include#include#includeusing namespace std;int m,n;char s[110][110];int vis[110][110];void dfs(int x,int y){ if(s[x][y] == '*' || vis[x][y])原创 2014-05-17 00:16:36 · 591 阅读 · 0 评论