All in good fun!

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

Policeman Biteusz loves pranking his friends from the police station. For example, his last joke was signing up his friend Bajteusz for patrolling the city on all Sundays and holidays left this year. However, Biteusz hasn’t been so happy since he heard about the new work. Biteusz have to patrol three designated streets. Roads in Bajtocja are straight and no two streets are parallel, so he will have to patrol some, perhaps degenerate to a point, triangle. The policeman will stand at the best place possible, so to minimalize the maximum distance, which he'd possibly have to travel, when called to run to the specified street. Biteusz has been wondering how far he will have to run when called. Help him and calculate the minimum distance!

입력

In the first line one integer Z104Z \le 10^4 is given, denoting number of testcases described in following lines. 

The first line of the each test case contains 33 --- the number of roads in Bajtocja. Each of the next 33 lines contains three integers a_ia\_i, b_ib\_i, c_ic\_i, the description of the ii-th road, meaning that the road is a line fulfilling the equation: a_ix+b_iy+c_i=0a\_{i}x + b\_{i}y + c\_i = 0

출력

For each test case you should print the minimum distance, which Biteusz will have to travel. Your answer will be accepted, if the absolute or relative error wouldn't exceed 10610^{-6}.

제한

  • a_i,b_i,c_i106|a\_i|, |b\_i|, |c\_i| \leq 10^{6}
  • a_i+b_i>0|a\_i|+|b\_i| > 0
  • No two given lines are parallel.