题目链接:
https://nanti.jisuanke.com/t/T1597
题意:
输出从起始点到边界的最小步数,走不到则输出-1
// 迷宫(三)--计蒜客
#include<iostream>
#include<cstdio>
#include<cmath>
#include<queue>
#include<vector>
#include<string>
#include<cstring>
#include<stack>
#include<algorithm>
using namespace std;
typedef long long ll;
#define maxn 1000000
int n,m,qx,qy,zx,zy;
bool ans = false;
char maze[15][15];
int is[15][15