logo AlgoBeat OnlineJudge
登录 注册

#217533. [ICPC 2018 Nanjing R] Country Meow

内存限制:512 MiB 时间限制:1000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

In the century, there is a country somewhere in the universe, namely Country Meow. Due to advanced technology, people can easily travel in the 3-dimensional space.

There are cities in Country Meow. The -th city is located at in Cartesian coordinate.

Due to the increasing threat from Country Woof, the president decided to build a new combatant command, so that troops in different cities can easily communicate. Hence, the Euclidean distance between the combatant command and any city should be minimized.

Your task is to calculate the minimum Euclidean distance between the combatant command and the farthest city.

输入格式

The first line contains an integer ().

The following lines describe the -th city located. Each line contains three integers ().

输出格式

Print a real number the minimum Euclidean distance between the combatant command and the farthest city. 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 considered correct if .

样例

样例输入 1

3
0 0 0
3 0 0
0 4 0

样例输出 1

2.500000590252103

样例输入 2

4
0 0 0
1 0 0
0 1 0
0 0 1

样例输出 2

0.816496631812619