| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 2 초 | 2048 MB | 47 | 28 | 21 | 80.769% |
An ant is on one of the vertices, say the starting vertex, of a rectangular cuboid (a hexahedron with all of its faces being rectangular). The surface of the cuboid constitutes the entire world of the ant.
We’d like to know which point on the surface of the cuboid is the farthest for the ant from the starting vertex. You may think that the opposite vertex, that is, the opposite end of the interior diagonal from the starting vertex, is the farthest. The opposite vertex is, however, not necessarily the farthest.
For example, on the surface of a cuboid of size 1ドル \times 1 \times 2,ドル the distance from a vertex to the opposite vertex is the square root of 8ドル$. The distance to the farthest point is, however, the square root of 65ドル/8$ (Figure F.1).
Figure F.1. Rectangular cuboid of size 1ドル \times 1 \times 2,ドル and its net
You are given the size of the rectangular cuboid. Write a program which calculates the distance from the starting vertex to the farthest point.
The input consists of a single test case of the following format.
$a$ $b$ $c$
The three integers $a,ドル $b,ドル and $c$ mean that the size of the rectangular cuboid is $a \times b \times c$. All of them are between 1ドル$ and 100ドル,ドル inclusive.
Output a line containing the distance from the starting vertex to the farthest point. The relative error of the output must be less than or equal to 10ドル^{-9}$.
1 1 2
2.850438562747845
10 10 10
22.360679774997898
100 2 3
101.0503923792481
2 3 5
7.093659140387279
84 41 51
124.582755157578