Enlarge Circles
시간 제한2초메모리 제한512 MB
N개의 점 각각을 중심으로 하는 원을 반지름 0도 허용하면서 서로 겹치지 않고 접촉만 하도록 배치해 둘레 합의 최댓값을 구한다.
문제
You are given distinct points on the 2-D plane. For each point, you are going to make a single circle whose center is located at the point. Your task is to maximize the sum of perimeters of these circles so that circles do not overlap each other. Here, "overlap" means that two circles have a common point which is not on the circumference of at least either of them. Therefore, the circumferences can be touched. Note that you are allowed to make a circle with radius .
입력
The input consists of a single test case in the following format.
$N$
$x_{1}$ $y_{1}$
$\vdots$
$x_{N}$ $y_{N}$
The first line contains an integer , which is the number of points (). Each of the following lines gives the coordinates of a point. Integers and () in the -th line of them give the - and -coordinates, respectively, of the -th point. These points are distinct, in other words, is satisfied if and are different.
출력
Output the maximized sum of perimeters. The output can contain an absolute or a relative error no more than .