摘要: "开餐馆" 01背包的变式 Code: 阅读全文
posted @ 2019-06-09 20:20 Mystery_Sky 阅读(1255) 评论(0) 推荐(0) 编辑
摘要: "分组背包" 分组背包模板题 Code: 阅读全文
posted @ 2019-06-09 20:01 Mystery_Sky 阅读(735) 评论(0) 推荐(0) 编辑
摘要: "宠物小精灵之收服" 二维费用背包 Code: c++ include include include include using namespace std; //Mystery_Sky // define M 5000 int f[M][M]; int n, m, k; int a[M], b[ 阅读全文
posted @ 2019-06-09 19:47 Mystery_Sky 阅读(1029) 评论(0) 推荐(0) 编辑
摘要: "潜水员" 二维费用背包 Code: 阅读全文
posted @ 2019-06-09 19:33 Mystery_Sky 阅读(1005) 评论(0) 推荐(0) 编辑
摘要: "Another One Bites The Dust" CF的题目在你谷上难度虚高似乎已成常态 不过这道题相比于~~愚人节的那几道~~相对好得多,没有被评成紫题。 这道题题面意思比较清楚,就是对于给定数量的'a'、'b'、'ab',求出能组成的最长‘ab'交替串。 ​ 设有x个'a',y个'b', 阅读全文
posted @ 2019-06-08 09:15 Mystery_Sky 阅读(131) 评论(0) 推荐(0) 编辑
摘要: "坏掉的项链Broken Necklace" 难度:★ Code: 阅读全文
posted @ 2019-05-30 21:37 Mystery_Sky 阅读(233) 评论(0) 推荐(0) 编辑
摘要: "黑色星期五" 难度:☆ Code: c++ include include include using namespace std; //Mystery_Sky // int day[13] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31} 阅读全文
posted @ 2019-05-30 20:12 Mystery_Sky 阅读(252) 评论(0) 推荐(0) 编辑
摘要: "你的飞碟在这儿" 难度:☆ Code: c++ include include include using namespace std; int jisuan(char a[]); int main() { char a[7] = {}; char b[7] = {}; cin a; cin b; 阅读全文
posted @ 2019-05-30 20:11 Mystery_Sky 阅读(150) 评论(0) 推荐(0) 编辑
摘要: "贪婪的送礼者Greedy Gift Givers" 难度:☆ Code: c++ include include include include using namespace std; //Mystery_Sky // struct People{ char name[20]; int out, 阅读全文
posted @ 2019-05-30 19:26 Mystery_Sky 阅读(225) 评论(0) 推荐(0) 编辑
摘要: "机器人搬重物" ~~咕咕咕了几个星期,终于静下心来写完了这篇题解~~ 这道题的坑点还是比较多的,下面会一一列举。 先审题: ​ 根据题目的意思,这是一道走迷宫的问题,显然用bfs去求解。 ​ 首先,我们需要建一张图。。。 ​ 这里很多人下意识地将题目中输入的图存下,这就涉及到了此题的第一个坑点了: 阅读全文
posted @ 2019-05-25 22:17 Mystery_Sky 阅读(238) 评论(0) 推荐(0) 编辑