Educational Codeforces Round 1
After many years, I have started catching up on Educational Rounds from the first one. Computational geometry is so hard—why am I so weak at it?
When I finish Educational, I will work through the Andrew series. Let us see when I finally complete it.
Problems A, B, C, and D seemed fairly straightforward. I mainly wanted to record Problem F here.
E. Chocolate Bar
Cutting a chocolate bar: a very classic dynamic-programming problem.
1 |
|
F. Cut length
Given a polygon and a line, calculate the length of the part of that line inside the polygon.
For computational geometry, use cross products to determine orientation and therefore intersections.
1 |
|