【题解】sdoj3736[2018.08.07集训]B.箱子

用 dist[position][box1][box2][box3]记录人在 position,箱子 1 在 box1,箱子 2 在box2,箱子 3 在 box3 位置时最少需要花费的步数。 Bfs 一遍即可。 #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int N=6e6+1
相关文章
相关标签/搜索