[문제 요약] 같은 지름을 가지는 바퀴에 걸린 벨트의 길이를 구하는 것이다.
Plotters have barberically hammered N nails into an innocent plane shape, so that one can see now only heads. Moreover, pursuing their mean object, they have hammered all the nails into the vertices of a convex polygon. After that they...it is awful... have roped off the nails, so that the shape felt upset (the rope was very thin). They've done it as it is shown in the figure.
Your task is to find out a length of the rope.
입력 4 1 0.0 0.0 2.0 0.0 2.0 2.0 0.0 2.0 출력 14.28
출처: Ural State University Internal Contest October'2000 Junior Session