摘要:
#include char a[101][101]; int m,n,dir[8][2]={{0,1},{0,-1},{1,0},{-1,0},{1,1},{1,-1},{-1,1},{-1,-1}},cnt; void dfs(int x,int y) { a[x][y]='*'; for(int i=0;i=m||y+dir[i][1]=n) cont... 阅读全文
posted @ 2016-11-02 10:53
perplex
阅读(154)
评论(0)
推荐(0)
摘要:
正式开始学习和练习DFS、BFS,先从这DFS道中最入门的题开始。 关键:剪枝。 阅读全文
posted @ 2016-11-02 10:35
perplex
阅读(166)
评论(0)
推荐(0)

浙公网安备 33010602011771号