Area
CodeChefOpen on judge ↗
Intersection is the most basic operation in geometry.You are given some rectangles with their opposite corner and you need to find the area that is contained in every one of these rectangles i.e. intersection area. For example , (0,4) and ( 4,8) are two opposite corner of first rectangle and (6,-6) and (-8,9} are two opposite corner of second rectangle. First rectangle is totally inside the second
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