摘要:
#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]=='@')) { 阅读全文