#P1355. 神秘大三角
神秘大三角
Description
Determine the positional relationship between a point and a given triangle.
Input Format
- The first three lines, each contains a coordinate, representing the three vertices of the triangle.
- The fourth line contains the coordinate of a point. Determine the positional relationship between this point and the triangle formed by the previous three points.
- All coordinate values are integers.
Output Format
- If the point is inside the triangle (excluding the boundary), output .
- If the point is outside the triangle (excluding the boundary), output .
- If the point is on the boundary of the triangle (excluding vertices), output .
- If the point is on a vertex of the triangle, output .
(0,0)
(3,0)
(0,3)
(1,1)
1
Hint
Constraints
For testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号