#include <bits/stdc++.h>
using namespace std;
const int MAX=110;
char maze[MAX][MAX];//迷宫
int h,w;//迷宫宽和高;
int sx,sy;//记录s的坐标
int dx[4]={-1,1,0,0};// 上下;
int dy[4]={0,0,-1,1};// 左右
int bfs(){
queue<pair<int,int>> q;// 存储x,y坐标,bfs使用队列
int steps[MAX][MAX]={}; // 记录...