URI Online Judge | 1126
# Star War

**Timelimit: 2**

Maratona de Programação da SBC Brazil

A long time ago, in a galaxy far, far away, there was an empire that dominated all others. A rebel alliance, unhappy with this situation, decided to fight these forces, with the objective of restoring democracy and peace for all nations.

Captain Cael, one of the rebel commanders, is sailing through space with his space cruiser, when he suddenly detects the presence of a ship of the Empire (according to the aesthetic standards of the time, all ships are tetrahedra). After a moment of surprise, Cael realizes he is in firing range and may place a cannon at any point of his ship.

As the power of his gun is fixed, Cael wants to position the cannon so that the distance traveled by the energy beam to the Empire\'s ship is minimal, to maximize the damage. Therefore, he asked that you, sub-master Cin Talig, compute the shortest distance between the rebel spacecraft and the spacecraft of the Empire.

The input contains several test cases. The first line of the input contains an integer ** T**, indicating the number of test cases. Each of the

Each coordinate description is a line containing three integers

For each test case in the input your program must print a line containing a single number, printed with precision of two decimal digits, indicating the minimum distance between the two spacecrafts. The distance between the two ships is always greater than zero.

Input Sample | Output Sample |

3 |
2.83 |