Triangles
CodeChefOpen on judge ↗
Given coordinates of vertices of 2 Triangles, ABC and DEF. Check if there exists a region common to both triangles. ###Input Format - First line contains integer $x$ coordinate of $A$ - Second line contains integer $y$ coordinate of $A$ - Third line contains integer $x$ coordinate of $B$ - Fourth line contains integer $y$ coordinate of $B$ - Fifth line contains integer $x$ coordinate of $C$ -
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start