hdu1312 Red and Black(DFS/BFS入门题目)
题目意思就是 从一个点出发,最多能走多少步#include#includeusing namespace std;int ans,x,y;int f[4][2] = {{1,0},{-1,0},{0,1},{0,-1}};char map[22][22];void dfs(int i,int j){ ans ++; int k; for(k = 0 ;