Sameer vs Shivam
CodeChefOpen on judge ↗
Shivam and Sameer are roommates.Shivam used to do crazy things.He is upset with Sameer because Sameer was absent on his birthday.Shivam has a rope with a finite length "L".He makes an rectangular area around his bed with the rope and ask Sameer to not came into this area . Shivam wants to occupy maximum space help him to find the length and breadth of the rectangle so that it can occupy maximum sp
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