← All problemsSign in

Geometry Is Love

One day Shibam's Geometry teacher decided to give him some questions to be solved in the Pongal vaccation. Shibam was given T questions to be solved.Each of the T questions were like this - Shibam is given two squares P and Q of side lengths a and b respectively. The bottom left corner of P is at (0,0) and the top right corner of P is at (a,a). The bottom left corner of Q is at (x,y) and the top

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start