摘要: 题目传送门 解题思路: 一维解01背包,突然发现博客里没有01背包的板子,补上 AC代码: 阅读全文
posted @ 2019-08-15 19:46 Mr^Simon 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 题目传送门 解题思路: 搜索题,因为要求最少次数,用bfs. AC代码: 1 #include<cstdio> 2 #include<iostream> 3 #include<cstring> 4 #include<string> 5 #include<queue> 6 #include<map> 阅读全文
posted @ 2019-08-15 19:44 Mr^Simon 阅读(231) 评论(0) 推荐(0) 编辑