随笔分类 -  计算几何

摘要:分析:写这题快写吐了...... 这道题的思路其实很容易想到:处理出每个点往左往右分别能看到哪. 然后以每个点为起点,照着题目说的那样记忆化搜索一下就好了,用st表处理出转向的情况. 怎么预处理呢?实际上就是维护了一个上凸壳,仿照凸包的维护方法即可. st表不再存储值,而是对应下标. 下面说说我de 阅读全文
posted @ 2018-04-05 00:11 zbtrs 阅读(349) 评论(0) 推荐(0) 编辑
摘要:Triangle Time Limit: 3000MS Memory Limit: 30000K Total Submissions: 9992 Accepted: 3001 Description Given n distinct points on a plane, your task is t 阅读全文
posted @ 2017-12-27 15:55 zbtrs 阅读(175) 评论(0) 推荐(0) 编辑
摘要:1185: [HNOI2007]最小矩形覆盖 Description 分析:有一个比较显然的结论:最小的矩形一定有一条边在凸包上.利用旋转卡壳求出对应边的最远点.这两个是比较容易做到的,有点难的是如何求另外两边的最远点. 另外两个点的位置显然是单峰函数,可以利用旋转卡壳的思想.关键就是如何以当前凸包 阅读全文
posted @ 2017-12-27 14:55 zbtrs 阅读(239) 评论(0) 推荐(0) 编辑
摘要:1043: [HAOI2008]下落的圆盘 Description 有n个圆盘从天而降,后面落下的可以盖住前面的。求最后形成的封闭区域的周长。看下面这副图, 所有的红色线条的总长度即为所求. 有n个圆盘从天而降,后面落下的可以盖住前面的。求最后形成的封闭区域的周长。看下面这副图, 所有的红色线条的总 阅读全文
posted @ 2017-12-26 20:50 zbtrs 阅读(199) 评论(0) 推荐(0) 编辑
摘要:Grandpa's Estate Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 14553 Accepted: 4070 Description Being the only living descendant of his g 阅读全文
posted @ 2017-12-26 14:34 zbtrs 阅读(224) 评论(0) 推荐(0) 编辑
摘要:Beauty Contest Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 39574 Accepted: 12275 Description Bessie, Farmer John's prize cow, has just 阅读全文
posted @ 2017-12-25 23:42 zbtrs 阅读(176) 评论(0) 推荐(0) 编辑
摘要:Cows Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 10039 Accepted: 4408 Description Your friend to the south is interested in building fe 阅读全文
posted @ 2017-12-25 22:01 zbtrs 阅读(153) 评论(0) 推荐(0) 编辑
摘要:Pipe Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 11421 Accepted: 3567 Description The GX Light Pipeline Company started to prepare bent 阅读全文
posted @ 2017-12-24 23:49 zbtrs 阅读(181) 评论(0) 推荐(0) 编辑
摘要:Segments Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 15967 Accepted: 5063 Description Given n segments in the two dimensional space, wr 阅读全文
posted @ 2017-12-24 15:58 zbtrs 阅读(165) 评论(0) 推荐(0) 编辑
摘要:TOYS Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 16851 Accepted: 8069 Description Calculate the number of toys that land in each bin of 阅读全文
posted @ 2017-12-24 12:44 zbtrs 阅读(159) 评论(0) 推荐(0) 编辑
摘要:Build Your Home Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 1121 Accepted: 621 Description Mr. Tenant is going to buy a new house. In f 阅读全文
posted @ 2017-12-24 11:58 zbtrs 阅读(174) 评论(0) 推荐(0) 编辑
摘要:Intersecting Lines Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 17149 Accepted: 7373 Description We all know that a pair of distinct poi 阅读全文
posted @ 2017-12-24 11:38 zbtrs 阅读(221) 评论(0) 推荐(0) 编辑
摘要:Statement of the Problem Several drawing applications allow us to draw polygons and almost all of them allow us to fill them with some color. The task 阅读全文
posted @ 2017-12-24 10:21 zbtrs 阅读(203) 评论(0) 推荐(0) 编辑
摘要:P2735 电网 Electric Fences P2735 电网 Electric Fences P2735 电网 Electric Fences 11通过 28提交 题目提供者该用户不存在 标签USACO 难度普及/提高- 提交 讨论 题解 最新讨论 暂时没有讨论 题目描述 在本题中,格点是指横 阅读全文
posted @ 2016-10-15 17:25 zbtrs 阅读(225) 评论(0) 推荐(0) 编辑