上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 73 下一页
摘要: 题目:https://codeforces.com/contest/1092/problem/D1 https://codeforces.com/contest/1092/problem/D2 https://codeforces.com/contest/1092/problem/E 很有趣的题; 阅读全文
posted @ 2018-12-21 22:35 Zinn 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 题目:https://www.lydsy.com/JudgeOnline/problem.php?id=5120 https://www.luogu.org/problemnew/show/P4003 神奇的费用流建图; 首先,网格图,相邻之间有关系,所以先二分染色一下; 然后发现问题就是染色后黑白 阅读全文
posted @ 2018-12-21 20:45 Zinn 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 题目:https://www.lydsy.com/JudgeOnline/problem.php?id=1070 需要考虑前面修的车对后面等待的车造成的时间增加; 其实可以从每个人修车的顺序考虑,如果这辆车作为最后一辆被一个人修,那么它对后面的车无影响,而每提前一位,影响时间就增加一份; 也就是如果 阅读全文
posted @ 2018-12-21 12:12 Zinn 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 题目:https://www.lydsy.com/JudgeOnline/problem.php?id=4066 https://www.lydsy.com/JudgeOnline/problem.php?id=2683 高仿:https://www.cnblogs.com/Narh/p/96055 阅读全文
posted @ 2018-12-21 00:28 Zinn 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 题目:https://www.lydsy.com/JudgeOnline/problem.php?id=2850 只要暴力判断是否全选一个子树或全不选,如果都不是就进入查询; 要注意值有负,所以不是直接看 min 和 max 的组合,而是各种都试一遍; pushup 时不要把 sum 累加写在循环里 阅读全文
posted @ 2018-12-20 16:22 Zinn 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 题目:https://www.lydsy.com/JudgeOnline/problem.php?id=2716 果然和 bzoj 2648 是一样的吧; 只是数组要迷之开大,3e5+5 会RE? 代码如下: #include<cstdio> #include<cstring> #include<a 阅读全文
posted @ 2018-12-20 10:45 Zinn 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 题目:https://www.lydsy.com/JudgeOnline/problem.php?id=1941 曼哈顿最小距离估价:max( 0, t[x].mn[i] - v.p[i] ) + max( 0, v.p[i] - t[x].mx[i] ),可理解为到边界; 曼哈顿最大距离估价:ma 阅读全文
posted @ 2018-12-20 10:02 Zinn 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 题目:https://www.lydsy.com/JudgeOnline/problem.php?id=2648 学习资料:https://blog.csdn.net/zhl30041839/article/details/9277807 https://www.cnblogs.com/galaxi 阅读全文
posted @ 2018-12-20 09:24 Zinn 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 题目:https://www.lydsy.com/JudgeOnline/problem.php?id=1185 枚举一条边,维护上、左、右方的点; 上方点到这条边距离最远,所以用叉积求面积维护; 左右点到这条边的射影最长(!),所以用点积求射影维护; 因为维护的点是只能逆时针走的,所以初始的左边点 阅读全文
posted @ 2018-12-19 23:38 Zinn 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 题目:http://poj.org/problem?id=2187 学习资料:https://blog.csdn.net/wang_heng199/article/details/74477738 https://www.jianshu.com/p/74c25c0772d6 注意求凸包时先下后上,保 阅读全文
posted @ 2018-12-19 21:37 Zinn 阅读(134) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 73 下一页