Pandemic Restrictions
면접 대비시간 제한4초메모리 제한2048 MB
서로 다른 세 점이 주어질 때, 세 친구 중 둘을 고른 두 거리 합의 최댓값이 최소가 되는 거주 지점 P를 찾는다.
문제
After a long time living abroad, you have decided to move back to Italy and have to find a place to live, but things are not so easy due to the ongoing global pandemic.
Your three friends Fabio, Flavio and Francesco live at the points with coordinates , and , respectively. Due to the mobility restrictions in response to the pandemic, meetings are limited to persons, so you will only be able to meet of your friends at a time. Moreover, in order to contain the spread of the infection, the authorities have imposed the following additional measure: for each meeting, the sum of the lengths travelled by each of the attendees from their residence place to the place of the meeting must not exceed .
What is the minimum value of (which can be any nonnegative real number) for which there exists a place of residence that allows you to hold the three possible meetings involving you and two of your friends? Note that the chosen place of residence need not have integer coordinates.
입력
The first line contains the two integers , () — the coordinates of the house of your friend Fabio.
The second line contains the two integers , () — the coordinates of the house of your friend Flavio.
The third line contains the two integers , () — the coordinates of the house of your friend Francesco.
It is guaranteed that your three friends live in different places (i.e., the three points , , are guaranteed to be distinct).
출력
Print the minimum value of which allows you to find a residence place satisfying the above conditions. Your answer is considered correct if its absolute or relative error does not exceed . Formally, let your answer be , and the jury’s answer be . Your answer is accepted if and only if .