摘要: 1、暴力版 本质上就是求连通块数量,那么DFS或者BFS都行,暴力跑。 写完发现题目比较特殊,m次提问,那每次都暴力搜,肯定是要跑死了。 #include <iostream> #include <string.h> #include <stdio.h> int cnt,n; int dir[4][ 阅读全文
posted @ 2019-04-03 21:45 czc1999 阅读(199) 评论(0) 推荐(0) 编辑