摘要: ABC177 A~E 简要题解 阅读全文
posted @ 2020-08-29 21:54 yu__xuan 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 题目 P1379 八数码难题 简化题意 给你一个八数码,问你最少几步可以移动到目标状态。类似下图。 思路 双向宽搜。 挺暴力的,感觉没啥需要讲的。 Code #include <cstdio> #include <cstring> #include <string> #include <iostre 阅读全文
posted @ 2020-08-29 14:53 yu__xuan 阅读(162) 评论(0) 推荐(0) 编辑