1002번: 터렛
python
T = int(input())
for _ in range(T):
x1, y1, r1, x2, y2, r2 = [int(x) for x in input().split()]
dist = ((x1 - x2) ** 2 + (y1 - y2) ** 2) ** 0.5
sum_ = r1 + r2
diff = ((r1 - r2) ** 2) ** 0.5
if not dist and not diff:
print(-1)
elif dist in [sum_, diff]:
print(1)
elif diff < dist < sum_:
print(2)
else:
print(0)