1代表空地 0代表阻挡物 3代表出口 4代表补给站 问最短路径 因为可以重复走 为了防止超时 要用一个use数组 要是当前的时间比use数组的大 更新use数组的值 相当于剪枝 AC代码: #include<stdio.h> #include<queue> #include<string.h> using namespace std; struct node{ int x; int y; int time; int step; }; int flag; int use[10][10]; int way[4][2]={ 0,1,0,-1,1,0,-1,0};...