Time Limit: 1s
Memory Limit: 128MB
There is a opaque cube with 8 vertices located at
(0, 0, 0) (0, 0, 10) (0, 10, 0) (0, 10, 10)
(10, 0, 0) (10, 0, 10) (10, 10, 0) (10, 10, 10)
Suppose you are located in one point in space, the cube in your view should be a polygon. You are only asked to tell the number of sides of this polygon.
The first line is an integer T, the number of cases.
The following T lines each contain three integers x, y, z ——the coordinate of your position.
You can assume that your position is strictly out side of the cube.
For each case, output a line containing the number of sides of the cube’s outline.
2 5 5 20 20 20 20
4 6