引爆炸弹

题目连接 思路:dfs搜索,因为数据量较大,须要剪枝 定义row和col两个数组,若是炸弹爆炸,则炸弹所在的row和col记为1 虽然求最少的炸弹引爆数,可是由于炸弹是连锁的,因此遍历便可ios #include <cstdio> #include <cstring> #include <cstdlib> #include <algorithm> #include <iostream> #incl
相关文章
相关标签/搜索