奇怪的电梯 分析 做个bfs,然后记录路径即可,注意打印格式 参考代码 #include <iostream> #include <algorithm> #include <queue> using namespace std; const int maxn = 200 + 5; int a[maxn], n; bool flag[maxn]; int p, q; struct node { int x; int t; } re[maxn]; int pr[205]; int BFS(int st, int et) { q...