摘要: http://codeforces.com/contest/864/problem/E 题意:题目有点长,主要是讲了一连串的故事。。。。(01背包问题+路径输出)了解了是01背包之后,就能很好的理解题意了。 大致说一下题意,就是给你三个数组 ti, di, pi (1 ≤ ti ≤ 20, 1 ≤  阅读全文
posted @ 2018-03-17 15:52 孟加拉国 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 自己实在太懒了,就没有自己再写一份代码,这是另一个博客上直接找来的,它的数组模板写的挺好的,指针模板一般般吧!~~ http://blog.csdn.net/king_cannon_fodder/article/details/77175620 数组模板其实就是模拟指针!~!~ 阅读全文
posted @ 2018-03-17 10:37 孟加拉国 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 字典树指针模板(数组模板暂时还没写): 1 #include<cstdio> 2 #include<string.h> 3 #include<algorithm> 4 using namespace std; 5 const int MAX=26; 6 const int maxn=1e4+100; 阅读全文
posted @ 2018-03-17 10:30 孟加拉国 阅读(132) 评论(0) 推荐(0) 编辑