
计算几何
csu_xiji
这个作者很懒,什么都没留下…
展开
-
牛客网 Kuangyeye's Game 计算几何 直线的一般方程
https://ac.nowcoder.com/acm/contest/3674/F链接:https://ac.nowcoder.com/acm/contest/3674/F来源:牛客网题目描述Christmas Day is coming! To celebrate this great festival, Kuangyeye, a creative boy, wants to play...原创 2020-01-11 18:58:43 · 296 阅读 · 0 评论 -
codeforces gym 102028 D Keiichi Tsuchiya the Drift King 计算几何
http://codeforces.com/gym/102028/problem/D题目大意:如上图,一个车在转弯,车长为bbb,车宽为aaa,转过的弧度为ddd,给出半径rrr,问道路的宽度www的最小值为多少。思路:如下图所示,OOO即为上图中的圆心OOO,黑三角形的竖着的边为bbb,横着的边为a+ra+ra+r,如果小车绕着点OOO顺时针旋转了aaa弧度,那么就会与下图的蓝色三角形重...原创 2019-09-21 17:08:23 · 278 阅读 · 0 评论 -
POJ 2653 Pick-up sticks 判断两线段是否相交
http://poj.org/problem?id=2653Stan has n sticks of various length. He throws them one at a time on the floor in a random way. After finishing throwing, Stan tries to find the top sticks, that is thes...原创 2019-08-13 10:21:18 · 124 阅读 · 0 评论 -
POJ 3304 Segments 枚举+叉积判断直线和线段是否相交
http://poj.org/problem?id=3304Given n segments in the two dimensional space, write a program, which determines if there exists a line such that after projecting these segments on it, all projected se...原创 2019-08-12 17:38:59 · 128 阅读 · 0 评论 -
POJ 2398 Toy Storage sort+叉积+二分
http://poj.org/problem?id=2398Mom and dad have a problem: their child, Reza, never puts his toys away when he is finished playing with them. They gave Reza a rectangular box to put his toys in. Unfor...原创 2019-08-12 16:21:30 · 113 阅读 · 0 评论 -
POJ 2318 TOYS 叉积+二分
http://poj.org/problem?id=2318Calculate the number of toys that land in each bin of a partitioned toy box.Mom and dad have a problem - their child John never puts his toys away when he is finished p...原创 2019-08-12 15:58:08 · 135 阅读 · 0 评论 -
计算几何
点的定义:为了便于理解,可以加一句 typedef point Vectortypedef\ \ point\ \ Vectortypedef point Vector,即把点当成向量来处理。struct point{ double x,y; point(double xx=0,double yy...原创 2019-08-12 15:34:54 · 162 阅读 · 0 评论 -
POJ 2187 Beauty Contest 凸包直径(旋转卡壳)
http://poj.org/problem?id=2187Bessie, Farmer John's prize cow, has just won first place in a bovine beauty contest, earning the title 'Miss Cow World'. As a result, Bessie will make a tour of N (2 &l...原创 2019-08-15 10:07:05 · 144 阅读 · 0 评论 -
POJ 1264 SCUD Busters 求凸包面积+判断一个点是否在凸包内
http://poj.org/problem?id=1264DescriptionSome problems are difficult to solve but have a simplification that is easy to solve. Rather than deal with the difficulties of constructing a model of the E...原创 2019-08-14 18:15:09 · 545 阅读 · 0 评论 -
POJ 1228 Grandpa's Estate 稳定凸包
http://poj.org/problem?id=1228DescriptionBeing the only living descendant of his grandfather, Kamran the Believer inherited all of the grandpa’s belongings. The most valuable one was a piece of conv...原创 2019-08-14 17:26:41 · 141 阅读 · 0 评论 -
洛谷P2742 【模板】二维凸包 / [USACO5.1]圈奶牛Fencing the Cows 计算凸包
https://www.luogu.org/problem/P2742题目描述农夫约翰想要建造一个围栏用来围住他的奶牛,可是他资金匮乏。他建造的围栏必须包括他的奶牛喜欢吃草的所有地点。对于给出的这些地点的坐标,计算最短的能够围住这些点的围栏的长度。输入格式输入数据的第一行包括一个整数 N。N(0 <= N <= 10,000)表示农夫约翰想要围住的放牧点的数目。接下来 N 行,...原创 2019-08-14 16:34:17 · 260 阅读 · 0 评论 -
POJ 1584 A Round Peg in a Ground Hole 判断一个多边形是否为凸包
http://poj.org/problem?id=1584DescriptionThe DIY Furniture company specializes in assemble-it-yourself furniture kits. Typically, the pieces of wood are attached to one another using a wooden peg th...原创 2019-08-14 15:26:47 · 181 阅读 · 0 评论 -
POJ 1265 Area 计算多边形格点数
http://poj.org/problem?id=1265Being well known for its highly innovative products, Merck would definitely be a good target for industrial espionage. To protect its brand-new research and development ...原创 2019-08-14 14:15:34 · 1271 阅读 · 0 评论 -
POJ 1385 Lifting the Stone 计算多边形的重心
http://poj.org/problem?id=1385There are many secret openings in the floor which are covered by a big heavy stone. When the stone is lifted up, a special mechanism detects this and activates poisoned ...原创 2019-08-14 10:05:29 · 151 阅读 · 0 评论 -
ZOJ 1081 Points Within 判断一个点是否在多边形内
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1081Statement of the ProblemSeveral drawing applications allow us to draw polygons and almost all of them allow us to fill them with some...原创 2019-08-14 09:53:44 · 245 阅读 · 0 评论 -
POJ 1039 Pipe 判断直线与线段相交+求两直线交点
http://poj.org/problem?id=1039The GX Light Pipeline Company started to prepare bent pipes for the new transgalactic light pipeline. During the design phase of the new pipe shape the company ran into ...原创 2019-08-13 15:46:26 · 214 阅读 · 0 评论 -
codeforces 613A Peter and Snow Blower 点到线段距离
http://codeforces.com/problemset/problem/613/APeter got a new snow blower as a New Year present. Of course, Peter decided to try it immediately. After reading the instructions he realized that it doe...原创 2019-08-13 12:25:26 · 173 阅读 · 0 评论