시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 256 MB 2424 651 436 38.963%

문제

로버트 후드는 로빈 후드의 동생이다. 로버트 후드는 자신의 형처럼 전설적인 인물이 되기 위해 활 쏘기를 연습하고 있다.

이번에 노팅엄에서 열린 활 쏘기 대회는 현대에 열리는 양궁과 규칙이 다르다. 양궁은 더 많은 점수를 쏜 사람이 승리하는 방식이다. 하지만, 노팅엄 활 쏘기 대회에서는 과녁에 맞은 화살 사이의 거리 중 최댓값이 가장 큰 사람이 승리한다.

로버트 후드는 총 C발을 발사했고, 모든 화살은 과녁에 적중했다. 과녁을 이차원 평면으로, 화살은 점으로 나타낸다. 화살의 좌표가 주어졌을 때, 가장 먼 화살의 거리를 구하는 프로그램을 작성하시오.

입력

첫째 줄에 로버트 후드가 발사한 화살의 수 C (2 ≤ C ≤ 100,000)가 주어진다. 다음 C개 줄에는 화살의 좌표가 주어진다. 좌표는 정수이고, 절댓값은 1,000을 넘지 않는다.

출력

가장 먼 두 화살의 거리를 출력한다. 상대/절대 오차가 10-6 이내인 경우에만 정답이다.

예제 입력 1

2
2 2
-1 -2

예제 출력 1

5.0

예제 입력 2

5
-4 1
-100 0
0 4
2 -3
2 300

예제 출력 2

316.86590223
W3sicHJvYmxlbV9pZCI6IjkyNDAiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWI4NWNcdWJjODRcdWQyYjggXHVkNmM0XHViNGRjIiwiZGVzY3JpcHRpb24iOiI8cD5cdWI4NWNcdWJjODRcdWQyYjggXHVkNmM0XHViNGRjXHViMjk0IFx1Yjg1Y1x1YmU0OCBcdWQ2YzRcdWI0ZGNcdWM3NTggXHViM2Q5XHVjMGRkXHVjNzc0XHViMmU0LiBcdWI4NWNcdWJjODRcdWQyYjggXHVkNmM0XHViNGRjXHViMjk0IFx1Yzc5MFx1YzJlMFx1Yzc1OCBcdWQ2MTVcdWNjOThcdWI3ZmMgXHVjODA0XHVjMTI0XHVjODAxXHVjNzc4IF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