![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
计算几何
wzw1105
生而无畏 战至终章
展开
-
「Comet OJ - Contest #13 E」燕的子安贝 -永命线-【计算几何+最大区间覆盖问题+差分】
题目链接https://cometoj.com/contest/72/problem/%EF%BC%A5题意就是给你n(n≤2000)n(n\leq2000)n(n≤2000)个整数点,让你求一条直线,使得距离这条直线小于等于ddd的点数最多题解首先直接求显然是很难的,不妨倒着思考也就是假如你知道了答案的直线,然后想象两条距离他为ddd的两条平行线,我们先约定将两条直线组合起...原创 2019-10-27 01:24:11 · 195 阅读 · 0 评论 -
「POI2018」Pionek【极角排序+双指针】
题目链接https://szkopul.edu.pl/problemset/problem/NZSCUwz2ACePsBKuVCIVzrRt/site/?key=statement题意就是给你nnn个向量(dx,dy)(d_x,d_y)(dx,dy),开始你在点(0,0)(0,0)(0,0),设你当前的位置为(x,y)(x,y)(x,y),然后每次你可以选择一个向量(dx,dy)(...原创 2019-10-27 01:07:27 · 215 阅读 · 0 评论 -
「2017CCPC哈尔滨站 M」Geometry Problem【计算几何】
题目链接http://acm.hdu.edu.cn/showproblem.php?pid=6242题意就是给你nnn个点,然后让你求一个圆,使得至少有⌈n2⌉\lceil \frac{n}{2}\rceil⌈2n⌉个点在圆上题解由于至少有一半的点在圆上,又因为三个不再同一条直线上的点可以确定一个圆,那么考虑随机出这三个点,然后O(n)O(n)O(n)去checkcheckc...原创 2019-10-12 22:00:38 · 238 阅读 · 0 评论 -
「Gym101158J」Cover the Polygon with Your Disk【模拟退火】
Problem J Cover the Polygon with Your Disk Input: Standard Input Time Limit: 5 secondsA convex polygon is drawn on a flat paper sheet. You are trying to place a disk in your handsto cover as larg...原创 2019-09-27 13:11:03 · 220 阅读 · 0 评论 -
「2017ACM/ICPC亚洲区域赛北京站现场赛G」Liaoning Ship's Voyage【计算几何】
Liaoning Ship’s VoyageLiaoning shipLiaoning\ shipLiaoning ship, which named after a province of China, is the first aircraft carrier commissioned into the People′s Liberation Army...原创 2019-09-27 00:55:31 · 366 阅读 · 0 评论 -
「2018ACM/ICPC亚洲区域赛沈阳站现场赛 L」 Machining Disc Rotors【计算几何】
L. Machining Disc Rotorstime limit per test 8 secondsmemory limit per test 1024 megabytesinput standard inputoutput standard outputEdwardEdwardEdward is a worker for AluminumAluminumAluminum Cyc...原创 2019-09-17 10:15:36 · 580 阅读 · 0 评论 -
「hdu6631」line symmetric【计算几何】
line symmetric Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 377 Accepted Submission(s): 51 Problem DescriptionYou are given a si...原创 2019-08-06 14:35:50 · 226 阅读 · 0 评论 -
「2019牛客多校第五场 I」three points 1【计算几何】
题意就是给你一个大小为w×hw\times hw×h的矩形,然后让你在矩形内选三个点,使得三个点的距离分别为a,b,ca,b,ca,b,c题解考虑旋转或者翻转三角形使得其放得下为止,然后大概就是分类大讨论了考虑枚举放在最下面的那条边【图中蓝色边】,可以将其正对www放下也可以正对hhh放下,这里值讨论正对www放下,另外一个类比即可第一种情况,能放到www身上,checkchec...原创 2019-08-01 22:12:48 · 169 阅读 · 0 评论 -
「Aizu2308」White Bird【计算几何】
White BirdAngry Birds is a mobile game of a big craze all over the world. You were convinced that it was a waste of time to play the game, so you decided to create an automatic solver.You are descr...原创 2019-08-04 17:04:59 · 167 阅读 · 0 评论 -
「POJ2826」An Easy Problem?!【计算几何】
An Easy Problem?!Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 17156 Accepted: 2661DescriptionIt’s raining outside. Farmer Johnson’s bull Ben wants some rain to water his flowers. Be...原创 2019-08-05 16:45:55 · 138 阅读 · 0 评论 -
「POJ1127」Jack Straws【计算几何】
Jack StrawsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 5865 Accepted: 2678DescriptionIn the game of Jack Straws, a number of plastic or wooden “straws” are dumped on the table and...原创 2019-07-21 01:19:07 · 154 阅读 · 0 评论 -
「计算几何精度问题」
本文转载自:传送门在ACMACMACM中,精度问题非常常见。其中计算几何头疼的地方一般在于代码量大和精度问题,代码量问题只要平时注意积累模板一般就不成问题了。精度问题则不好说,有时候一个精度问题就可能成为一道题的瓶颈,让你debugdebugdebug半天都找不到错误出在哪。浮点数为啥会有精度问题:浮点数(以C/C++为准),一般用的较多的是float, double。占字节数...转载 2019-07-20 00:14:02 · 733 阅读 · 0 评论