
计算几何
文章平均质量分 69
xuanweiace
一个热爱算法竞赛的弱校ACMer路过。青大本,浙大硕,方向后端开发,菜鸡一枚,奋斗ing...
展开
-
计算几何 -- 旋转坐标系
原创 2019-11-02 21:17:03 · 950 阅读 · 0 评论 -
【POJ - 3347 】Kadj Squares (计算几何,思维 或 扫描线)
题干:In this problem, you are given a sequence S1, S2, ..., Sn of squares of different sizes. The sides of the squares are integer numbers. We locate the squares on the positive x-y quarter of the pla...原创 2018-10-30 22:03:02 · 381 阅读 · 0 评论 -
【CodeForces - 227A】Where do I Turn? (计算几何,叉积判断直线拐向)
题干:Trouble came from the overseas lands: a three-headed dragon Gorynych arrived. The dragon settled at point C and began to terrorize the residents of the surrounding villages.A brave hero decided...原创 2018-11-03 09:35:12 · 279 阅读 · 0 评论 -
【CodeForces - 270A】Fancy Fence (几何,思维,水题)
题干:Emuskald needs a fence around his farm, but he is too lazy to build it himself. So he purchased a fence-building robot.He wants the fence to be a regular polygon. The robot builds the fence alo...原创 2018-11-18 21:50:58 · 575 阅读 · 1 评论 -
【CodeForces - 340B 】Maximal Area Quadrilateral (计算几何,枚举,有坑)
题干:Iahub has drawn a set of n points in the cartesian plane which he calls "special points". A quadrilateral is a simple polygon without self-intersections with four sides (also called edges) and fo...原创 2018-12-04 21:25:59 · 374 阅读 · 0 评论 -
【CodeForces - 507B】Amr and Pins(思维贪心,几何问题)
题干:Amr loves Geometry. One day he came up with a very interesting problem.Amr has a circle of radius r and center in point (x, y). He wants the circle center to be in new position (x', y').In on...原创 2018-12-27 19:39:24 · 348 阅读 · 0 评论 -
【牛客 - 318M】被打脸的潇洒哥(几何问题,水题,结论,知识点)
题干: 平面上有n个圆,求使这n个圆两两相交(即每两个圆之间恰好有两个交点)后最多能把平面划分成多少个区域。输入描述:一个正整数t,表示有t(1≤t≤100)组数据。接下来t行,每行一个整数n(0≤n≤1000),代表平面内圆的个数。输出描述:输出共t行。每行一个正整数,表示对应的n个圆将该平面划分成的最大的区域数。示例1输入复制312...原创 2018-12-26 15:44:24 · 301 阅读 · 0 评论 -
【ZOJ - 2976】Light Bulbs (枚举,暴力)
题干:Wildleopard had fallen in love with his girlfriend for 20 years. He wanted to end the long match for their love and get married this year. He bought a new house for his family and hired a company...原创 2019-03-05 12:30:09 · 450 阅读 · 2 评论 -
【ZOJ - 4032】Magic Points (思维,几何,构造)
题干:解题报告:想到了,这样绕圈构造。但是这样有个问题,最后一个点如何构造。刚开始想的是n=奇数 , 就8 10 这样的连一条,n=偶数 就8 11 这样的连一条,随便构造一下就行,但是发现这样好像不行。所以改了构造方法大概长这样,就是交叉着连,然后如果n=偶数,那会剩下两条边的空闲,那就先2,4这样连一条,3,7这样连一条。如果n=奇数,那就剩下一条...原创 2019-04-27 12:22:45 · 461 阅读 · 0 评论 -
【POJ - 1556】The Doors (计算几何,线段相交)
题干:You are to find the length of the shortest path through a chamber containing obstructing walls. The chamber will always have sides at x = 0, x = 10, y = 0, and y = 10. The initial and final point...原创 2018-10-29 00:00:36 · 252 阅读 · 0 评论 -
【POJ - 1696】Space Ant (凸包,最小极角,排序)
题干:The most exciting space discovery occurred at the end of the 20th century. In 1999, scientists traced down an ant-like creature in the planet Y1999 and called it M11. It has only one eye on the l...原创 2018-10-29 00:00:47 · 287 阅读 · 0 评论 -
【ACM算法讲堂之 - 计算几何基础】:【点积和叉积】(附一些模板)
计算几何是算法竞赛的一大块,而叉积是计算机和的基础。首先叉积是计算说向量之间的叉积,那么我们可以这样定义向量,以及向量的运算符重载。 struct Point{ double x,y; Point(double x=0,double y=0):x(x),y(y) {}};typedef Point Vector;Vector operator + (Vecto...转载 2018-09-03 23:44:20 · 898 阅读 · 0 评论 -
【POJ - 2318】TOYS(计算几何,叉积判断点与直线位置关系,二分)
题干:Calculate 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 playing with them. They ga...原创 2018-09-06 16:56:49 · 348 阅读 · 0 评论 -
【CodeForces - 124D】Squares (旋转坐标系,计算几何,思维)
题干:You are given an infinite checkered field. You should get from a square (x1; y1) to a square (x2; y2). Using the shortest path is not necessary. You can move on the field squares in four directio...原创 2018-10-27 00:56:07 · 495 阅读 · 0 评论 -
【CodeForces - 144B 】Meeting (暴力枚举,水题,计算几何)
题干:The Super Duper Secret Meeting of the Super Duper Secret Military Squad takes place in a Super Duper Secret Place. The place is an infinite plane with introduced Cartesian coordinate system. The ...原创 2018-10-14 22:51:20 · 650 阅读 · 0 评论 -
【POJ - 2398】Toy Storage (计算几何,二分找位置,叉积,点和直线的位置关系)
题干: Mom 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. Unfortunately, Reza is rebel...原创 2018-10-27 00:22:35 · 205 阅读 · 0 评论 -
【POJ - 1269 】Intersecting Lines (计算几何,直线间的位置关系)
题干:We all know that a pair of distinct points on a plane defines a line and that a pair of lines on a plane will intersect in one of three ways: 1) no intersection because they are parallel, 2) inte...原创 2018-10-27 00:29:20 · 250 阅读 · 0 评论 -
【POJ - 3304 】Segments(计算几何,思想转化,直线和线段相交)
题干:Given 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 segments have at least one p...原创 2018-10-27 00:43:30 · 220 阅读 · 0 评论 -
【FZU - 2140 】Forever 0.5 (计算几何,构造)
题干:Given an integer N, your task is to judge whether there exist N points in the plane such that satisfy the following conditions:1. The distance between any two points is no greater than 1.0.2....原创 2018-08-29 21:39:34 · 270 阅读 · 0 评论