随笔分类 -  深度优先搜索

摘要:试题链接:点击打开链接#include #include using namespace std;int m,n;int Map[105][105];int color[105][105];int num=0;int area;int areaMax;void DFS... 阅读全文
posted @ 2018-03-24 21:18 詹晔晔(๑>؂<๑) 阅读(154) 评论(0) 推荐(0)
摘要:#include #include using namespace std;int R,C; //行列数int rooms[60][60];int color[60][60]; //方块是否被标记过int maxRoomArea=0,roomNum=0;int roo... 阅读全文
posted @ 2018-03-22 20:50 詹晔晔(๑>؂<๑) 阅读(138) 评论(0) 推荐(0)