← All problemsSign in

Sagar And Pens

Problem Statement: Little Sagar loves studying. Recently, He found a few pens each of length 1 inches in the pen stand. He took all of them and decided to mark a rectangular area on the floor with pens and warn rest of the council members to not to enter that area so that he can study in peace. He wants to maximize that area. But, unable to do so, He seeks for your help. You being the elder broth

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