Three Countries

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

문제

Today, you want to measure the accessible area of Teyvat.

Mondstadt, Liyue, and Inazuma are the three countries in Teyvat. The territories of these countries can be regarded as three circles c_1c\_1, c_2c\_2, and c_3c\_3, respectively. It is possible that some of the circles overlap.

Let S_iS\_i be the set of points in c_ic\_i. The area of Teyvat, SS, is defined as the convex hull of points in S_1S_2S_3S\_1 \cup S\_2 \cup S\_3.

Formally, SS is the smallest set of points satisfying the following two conditions:

  • SS_1S_2S_3S \supseteq S\_1 \cup S\_2 \cup S\_3,
  • p_1,p_2S,α\[0,1],αp_1+(1α)p_2S\forall p\_1, p\_2 \in S, \forall \alpha \in \[0, 1], \alpha p\_1 + (1-\alpha)p\_2 \in S.

You are given the circles c_1c\_1, c_2c\_2, and c_3c\_3. Your task is to calculate the area of SS.

입력

The first line contains a single integer tt, the number of test cases (1t1041 \leq t \leq 10^4).

Each test case is given on three lines. The ii-th of these lines contains three integers, xx, yy, and rr, which are the coordinates of the center and the radius of ii-th circle (1x,y,r1001 \leq x, y ,r \leq 100).

출력

For each test case, output a single real number representing the area of SS

Your answer will be considered correct if its absolute or relative error when compared with the jury's answer is no more than 10610^{-6}.