Rolling The Polygon (2018-2019 ACM-ICPC, China Multi-Provincial Collegiate Programming Contest)(The 2019
BahiyyahhasaconvexpolygonwithnnverticesP0,P1,⋯,Pn−1P0,P1,⋯,Pn−1inthecounterclockwiseorder.Twoverticeswithconsecutiveindexesareadjacent,andbesides,P0P0andPn−1Pn−1areadjacent.ShealsoassignsapointQQinsid