04 2020 档案
摘要:题目链接:http://oj.ecustacm.cn/problem.php?id=1316 以0开始,为空点编号,然后进行全排列 #include <iostream> #include <cstring> #include <vector> #include <queue> #include <
阅读全文
摘要:题目链接:http://oj.ecustacm.cn/problem.php?id=1266 想法:宽搜,判断上一步走的位置上的字符与下一个要走的位置的字符是否相同。如果相同,则跳过,不同则可以往下走 #include <iostream> #include <cstring> #include <
阅读全文
摘要:题目:http://oj.ecustacm.cn/problem.php?id=1423 这道题不难,就是输入要稍加费点力。 推荐博客:https://www.cnblogs.com/Simon-X/p/5302627.html (在输入时,利用了输入到文件末尾结束。因为题目没有要求多组测试用例)
阅读全文