Fire!

  一個迷宮,有一個地方着火了,火源可以往上下左右擴散,人可以往上下左右四個方向逃走,問逃出去。 AC代碼: #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> #include <queue> using namespace std; const int maxn=1001; int vis[
相關文章
相關標籤/搜索