시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB95483550.725%

문제

Bobo has three points, namely, point $A$, $B$ and $C$. And now he wants to find a point $P$ to minimize $|PA| + 2 \cdot |PB| + 3 \cdot |PC|$.

Note that $|AB|$ denotes the Euclidian distance between points $A$ and $B$.

입력

Each of the $3$ lines contains $2$ integers $x_i, y_i$, which denotes the coordinates of point $A, B, C$, respectively ($|x_i|, |y_i| \leq 10000$).

출력

A single float number denotes the minimum of total distance. Absolutely or relatively error within $10^{-6}$ will get accepted.

예제 입력 1

0 0
0 0
1 0

예제 출력 1

3.000000000