计算几何
计算几何
Guuuuuu老师儿
当初的算法竞赛题目博客的留言评论就不回复了,时间太久已经忘干净了,抱歉~
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
How Many Pieces of Land ? UVA - 10213 (计算几何公式)
How Many Pieces of Land ?UVA - 10213LemmaIf we already have n points on the circle and add one more point, we drawn lines from the new point to previously existing points. Two cases原创 2018-01-28 10:01:06 · 476 阅读 · 0 评论 -
基础计算几何模板+解释
这个部分模板是来自kuagnbin模板,我为了能够好理解加了些解释和说明首先在开始前需要定义一些变量,和几个必要的方法#include <bits/stdc++.h>using namespace std;const double eps = 1e8;const double inf = 1e20;const double pi = acos( 1.0);//圆周率c...原创 2018-09-06 15:53:00 · 456 阅读 · 0 评论 -
Intersecting Lines POJ - 1269(计算几何判断直线位置关系+求直线交点)
Intersecting Lines POJ - 1269We 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 ...原创 2018-08-07 20:21:18 · 288 阅读 · 0 评论 -
Segments POJ - 3304(计算几何基础判断两直线相交)
Segments POJ - 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 segments hav...原创 2018-08-07 19:13:03 · 383 阅读 · 0 评论 -
Toy Storage POJ - 2398(计算几何基础判断点与直线位置+二分)
Toy Storage POJ - 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. Unfortunatel...原创 2018-08-07 18:23:05 · 213 阅读 · 0 评论 -
TOYS POJ - 2318(计算几何判断点和直线位置+二分)
TOYS POJ - 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 playing with th...原创 2018-08-07 18:03:49 · 224 阅读 · 0 评论 -
Cake ZOJ - 3537(判断凸包模板+最优三角剖分+区间dp详解)
Cake ZOJ - 3537 You want to hold a party. Here's a polygon-shaped cake on the table. You'd like to cut the cake into several triangle-shaped parts for the invited comers. You have a knife to cut. Th...原创 2018-08-01 19:01:44 · 1101 阅读 · 2 评论 -
广场舞 (第七届蓝桥杯决赛题过50%数据讲解代码+过100%数据思路)
广场舞LQ市的市民广场是一个多边形,广场上铺满了大理石的地板砖。地板砖铺得方方正正,就像坐标轴纸一样。以某四块砖相接的点为原点,地板砖的两条边为两个正方向,一块砖的边长为横纵坐标的单位长度,则所有横纵坐标都为整数的点都是四块砖的交点(如果在广场内)。广场的砖单调无趣,却给跳广场舞的市民们提供了绝佳的参照物。每天傍晚,都会有大批市民前来跳舞。舞者每次都会选一块完整的砖来跳舞,两个人不会选择同一块砖,...原创 2018-05-21 21:19:15 · 2283 阅读 · 4 评论 -
Two Triangles FZU - 2270 (计算几何,叉积判断对称)
Two Triangles FZU - 2270 Fat brother and Maze are playing a kind of special (hentai) game with some points in a two-dimensional plane. First Fat Brother wou...原创 2018-04-18 18:59:59 · 468 阅读 · 0 评论 -
Triangles FZU - 2273 (叉积判断点是否在三角形内)
Triangles FZU - 2273 This is a simple problem. Given two triangles A and B, you should determine they are intersect, contain or disjoin...原创 2018-04-06 16:05:53 · 287 阅读 · 0 评论 -
叉积
叉积的计算是线段方法的核心。考虑如图33-1(a)所示的向量p1和p2。我们可以把叉积解释为由点(0,0),p1,p2 和 p1+p2=(x1+x2,y1+y2)所构成的平行四边形的有向面积。另一种与之等价但更有效的叉积定义方式是将之看做矩阵行列式: p1×p2=det[x1y1x2y2]=x1y2−x2y1=−p2×p1 若p1×p2值为正,则相对于原点(0,0)来说,p1位于p2的顺时针方向;...原创 2018-04-06 16:04:03 · 7732 阅读 · 0 评论 -
Moon Game FZU - 2148 (计算几何,叉积判断对角线)
Moon Game FZU - 2148 Fat brother and Maze are playing a kind of special (hentai) game in the clearly blue sky which we can just consider...原创 2018-04-14 17:04:00 · 244 阅读 · 0 评论 -
Forever 0.5 FZU - 2140 (思维+计算几何+构造)
Forever 0.5 FZU - 2140 Given an integer N, your task is to judge whether there exist N points in the plane such that satisfy the followi...原创 2018-04-14 15:37:53 · 257 阅读 · 1 评论 -
Safest Buildings ZOJ - 3993(计算几何+思维)
Safest Buildings ZOJ - 3993PUBG is a multiplayer online battle royale video game. In the game, up to one hundred players parachute onto an island and scavenge for weapons and equipment to kill others...原创 2018-09-21 07:42:55 · 377 阅读 · 0 评论
分享