摘要: 这道题注意要记录的是总步数,而不是当前步数 #include <iostream> #include <cstring> using namespace std; const int N = 105; char g[N][N]; int k, n; bool vis[N][N]; int sx, s 阅读全文
posted @ 2023-11-01 17:50 Gold_stein 阅读(1) 评论(0) 推荐(0) 编辑
摘要: dfs模板 #include <iostream> #include <cstring> using namespace std; const int N = 105; char g[N][N]; int k, n; bool vis[N][N]; int sx, sy, ex, ey; int d 阅读全文
posted @ 2023-11-01 11:33 Gold_stein 阅读(1) 评论(0) 推荐(0) 编辑