摘要: 题目链接:https://www.luogu.com.cn/problem/P4289 状压+bfs 将初始状态和目标状态都保存下来,然后对于每个有棋子的位置 直接上下左右bfs即可。 2024.4.30 upd :代码添加了注释 const int maxn = 2e5+10; queue<int 阅读全文
posted @ 2024-04-18 10:43 Captainfly19 阅读(5) 评论(0) 推荐(0) 编辑