Fork me on GitHub
摘要: 原题: ZOJ 3674http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3674题意不难理解,很容易想到用暴力,但是无从下手,不知道怎么实现。后来看了网上的代码,直接用vector和map暴力,用到了set_intersect... 阅读全文
posted @ 2014-07-07 23:59 whatbeg 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 原题: ZOJ 3675http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3675由m#include #include #include #include #include using namespace std;#defin... 阅读全文
posted @ 2014-07-07 22:07 whatbeg 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 原题: ZOJ 3686http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3686这题本来是一个比较水的线段树,结果一个mark坑了我好几个小时。。哎。太弱。先DFS这棵树,树形结构转换为线性结构,每个节点有一个第一次遍历的时间... 阅读全文
posted @ 2014-07-07 21:16 whatbeg 阅读(251) 评论(0) 推荐(0) 编辑