logo AlgoBeat OnlineJudge
登录 注册

#217121. [ICPC 2017 Nanning R] The Ball

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

题目描述

:::align{center} :::

In the three dimensional Euclidean space , the intersection of several half spaces and forms an area with positive volume.

Here each half space is represented as a linear inequation . Our problem is to find the largest available ball fully locating in the area.

输入格式

The input contains several test cases. The first line of input contains an integer indicating the number of cases.

For each case, the first line contains an integer indicating the number of half spaces. Each of the following lines describes a half space given by four integers and corresponding to the linear inequation ,where . The summation of N in input is up to .

输出格式

For each test case, output a line. If the size of available balls is unrestricted, output “Infinity”. Else, output the largest radius of an available ball with the precision of digits after the decimal point.

样例

样例输入 1

5
3
1 0 0 1
0 1 0 1
0 0 1 1
1
1 1 1 1
2
-1 -1 -1 -2
1 2 3 7
2
1 0 0 1
0 0 1 1
1
1 -1 0 0

样例输出 1

0.5000
0.2113
0.5901
0.5000
Infinity