摘要: #include #define MAXM 110#define MAXN 110char mat[MAXM][MAXN];int vis[MAXM][MAXN];int n, m;void dfs(int i, int j){ int dx, dy; int nx, ny; vis[i][j] = 1; mat[i][j] = '*'; for( dx = -1; dx =0 && nx=0 && ny<n && (!vis[nx][ny]) && (mat[nx][ny]=='@')) { 阅读全文
posted @ 2013-08-05 16:16 翼展zjz 阅读(169) 评论(0) 推荐(0) 编辑