10321 - Polygon Intersection
Moderator: Board moderators
Accepted
I got Accepted in this problem, I did a very very nasty mistake, in sorting points!!.
-
- New poster
- Posts: 24
- Joined: Sun Nov 12, 2006 3:38 pm
I got AC and have the same output for the testcases above.viniciusweb wrote:Is the output posted above correct? should i count only the points where 2 lines intercept each other or also when a vertex is inside another polygon?
However some things should be clarified:
- The input consists indeed of arbitrary polygons.
- The input polygons are not necessarily in clockwise order (see sample).
- All points of the polygons resulting from intersection have to be printed (not only points resulting from edge intersection).
- There seem to be no vertex on edge cases.
macin