pack-the-balloons

Its a Saturday afternoon and Mukul is getting bored lying idle on his cozy bed. His eyes falls on a packet of balloons and some boxes lying on his table. He now wonders how large a balloon he can fit in a given box. Given the dimensions of a box, help Mukul determine the radius of the largest balloon that he can fit in the box. Assume that an inflated balloon will be spherical.

Input:

The first line of the input will be T, the number of test cases.
Next follows T lines each containing three space separated integers (L, B, H) which are the length, breadth and height of the box respectively.

Output:

Print T lines each consisting of the radius(correct to 1 decimal place) of the largest balloon that Mukul can fit inthe box of dimensions corresponding to each test case.

Constraints:

1 ≤ T ≤ 10^5 
1 ≤ L, B, H ≤ 10^18

SAMPLE INPUT
3
1 2 3
3 3 7
987548 4578445 9645875456

SAMPLE OUTPUT
0.5
1.5
493774.0

Source: hackerearth | Difficulty: UNKNOWN_DIFFICULTY


Solutions:
for _ in range(eval(input())):
	a,b,c=list(map(int,input().split()))
	x=min(a,b,c)
	if x%2==0:
		x=x/2
		print("%d.0"%x)
	else:
		x=x/2
		print("%d.5"%x)


n = int(eval(input()))

assert(n>=1 and n<= 10**5)

for i in range(n):
	arr = list(map(int, list(input().strip().split(' '))))
	assert(arr[0] >= 1 and arr[0] <= 10**18 and arr[1] >= 1 and arr[1] <= 10**18 and arr[2] >= 1 and arr[2] <= 10**18)
	t = min(arr)
	if t%2 == 0:
		print(str(t/2) + ".0")
	else:
		print(str(t/2) + ".5")