摘要: 题目链接题意:最多三个字母,要让他们移动到对应的大写字母的方格里,问最小的步数(一步里面三个字母可以同时走) 解析:直接bfs做的话肯定会超时,因为每一步都是五的三次方,而且障碍物很多,所以我们需要建图,听起来挺可怕的,其实不然,建图就是我们将图中可以走的节... 阅读全文
posted @ 2018-04-11 18:20 ffgcc 阅读(110) 评论(0) 推荐(0) 编辑
摘要: C. Make a Square time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputYou... 阅读全文
posted @ 2018-04-11 16:32 ffgcc 阅读(196) 评论(0) 推荐(0) 编辑
摘要: D. Merge Equals time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputYou ... 阅读全文
posted @ 2018-04-11 14:40 ffgcc 阅读(81) 评论(0) 推荐(0) 编辑