CSAcademy Round 34 was today, It was a while since I did competitive programming and surprisingly I ranked 9, it seems I perform relatively fast when facing easy problems.
The hardest problem was about counting the number of sub-polygons that contains a given point . My approach was solving the inverse problem i.e the number of sub-polygons that does not contain the point.
For every vertex of the polygon, we can find the furthest vertex j such that is at the left of the segment ij, now we can create a subpolygon that does not contain just by choosing of the vertices that are between and