【題解】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
相關文章
相關標籤/搜索