Line Segment Intersection

From CSES. Segment intersection via orientation. Solve the geometry problem "Line Segment Intersection".

Examples
Input: [1,2,3]
Output: 0
Hints

Line Segment Intersection

**From CSES.** Segment intersection via orientation. Solve the geometry problem "Line Segment Intersection".