#D10576. Circles Intersection
Circles Intersection
Circles Intersection
You are given circle with radius and with central coordinate and circle with radius and with central coordinate .
Write a program which prints:
- "2" if is in ,
- "-2" if is in ,
- "1" if circumference of and intersect, and
- "0" if and do not overlap.
You may assume that and are not identical.
Input
The input consists of multiple datasets. The first line consists of an integer (), the number of datasets. There will be lines where each line represents each dataset. Each data set consists of real numbers:
Output
For each dataset, print 2, -2, 1, or 0 in a line.
Example
Input
2 0.0 0.0 5.0 0.0 0.0 4.0 0.0 0.0 2.0 4.1 0.0 2.0
Output
2 0
inputFormat
Input
The input consists of multiple datasets. The first line consists of an integer (), the number of datasets. There will be lines where each line represents each dataset. Each data set consists of real numbers:
outputFormat
Output
For each dataset, print 2, -2, 1, or 0 in a line.
Example
Input
2 0.0 0.0 5.0 0.0 0.0 4.0 0.0 0.0 2.0 4.1 0.0 2.0
Output
2 0
样例
2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
2
0
</p>