#include <stdio.h>#include <string.h>#include <stdlib.h>#include <math.h>#include <stdbool.h>char map[40][40];int time[40][40];int q[80][2];//模拟队列int qq[1600][2];int sx,sy,ex,ey,hx,hy;//开始,结束,火源的坐标地点int dx[]={0,1,0,-1};int dy[]={1,0,-1,0};int n,m;int ox[]={0,0,1,1,1,-1,...