Mister B and Angle in Polygon

CodeForces - 820B