Loading

摘要: 拓扑排序 题目做的烦,题解写着玩 "POJ 2762 Going from u to v or from v to u?" 有向图,之间定义这样的关系,u能到达v或者v能到达u,则满足关系 观察知,即拓扑排序中队列中不能有两个节点 code "POJ 3687 Labeling Balls" 重量为 阅读全文
posted @ 2019-02-26 19:35 fridayfang 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round 542 (Div. 2) 题目做不下去的我写一写题解 A. Be Positive 水题,考虑正数,负数个数是否$\geq \lceil \frac{n}{2} \rceil$ B. Two Cakes 给定位置大小为1...n的蛋糕,每种大小共两份,要求两个人从最 阅读全文
posted @ 2019-02-26 18:36 fridayfang 阅读(224) 评论(0) 推荐(0) 编辑