
扫描线
文章平均质量分 89
i-unique
擅长各种姿势划水
展开
-
POJ 1389 Area of Simple Polygons(线段树+扫描线+离散化)
There are N, 1 <= N <= 1,000 rectangles in the 2-D xy-plane. The four sides of a rectangle are horizontal or vertical line segments. Rectangles are defined by their lower-left and upper-right corner points. Each corner point is a pair of two nonnegative in原创 2017-07-27 18:54:49 · 610 阅读 · 0 评论 -
HDU 1828 Picture (线段树+扫描线+离散化)
A number of rectangular posters, photographs and other pictures of the same shape are pasted on a wall. Their sides are all vertical or horizontal. Each rectangle can be partially or totally covered by the others. The length of the boundary of the union of原创 2017-07-18 09:02:00 · 540 阅读 · 0 评论 -
POJ 1542 Atlantis (线段树+扫描线+离散化)
There are several ancient Greek texts that contain descriptions of the fabled island Atlantis. Some of these texts even include maps of parts of the island. But unfortunately, these maps describe different regions of Atlantis. Your friend Bill has to know原创 2017-07-14 17:21:38 · 708 阅读 · 0 评论 -
HDU-1255 覆盖的面积(线段树扫描线模板+离散化+加点修改题)
给定平面上若干矩形,求出被这些矩形覆盖过至少两次的区域的面积.原创 2017-08-16 17:13:06 · 445 阅读 · 0 评论 -
HDU-1255 覆盖的面积(线段树扫描线+离散化+改进后超快的算法)
给定平面上若干矩形,求出被这些矩形覆盖过至少两次的区域的面积.原创 2017-08-17 10:09:09 · 557 阅读 · 0 评论 -
模板总结
属于自己的模板。。。比赛防忘记赛前复习向原创 2017-07-24 10:25:30 · 1561 阅读 · 1 评论 -
2017 ACM-ICPC 亚洲区(南宁赛区)网络赛 F. Overlapping Rectangles(扫描线)
There are nn rectangles on the plane. The problem is to find the area of the union of these rectangles. Note that these rectangles might overlap with each other, and the overlapped areas of these rectangles shall not be counted more than once. For example,原创 2017-09-24 16:57:25 · 514 阅读 · 0 评论