立体推箱子 解题思路 这题时候是一个bfs 模拟长方体的各种状态 代码量大了点而已 AC代码 #include<cstdio> #include<cstring> using namespace std; int n,m,x1,y1,px[2500005],py[2500005],pt[2500005],ps[2500005],a[505][505],c[505][505][5]; int dx[4][4]={ { },{ -1,0,2,0},{ -1,0,1,0},{ -2,0,1,0}};//几种移动 int dy[4][4]={ { },{ 0,2,0,-1}...