边界处理+bfs

题目: https://www.luogu.org/problemnew/show/P1126 题解: #include<bits/stdc++.h> using namespace std; #define map mapp bool map[51][51]; //存地图 ,检查是否越界 int vis[51][51]; //存访问过的最优解 struct yyy{int x,y,dir,
相关文章
相关标签/搜索