Ben in a Room
CodeChefOpen on judge ↗
Ben is stuck inside a room of dimensions L*B*H where L, B, H denote length, breadth and height respectively. The walls and ceiling of the room are connected to hydraulic presses that push walls and ceiling each day inside by some meters at a constant rate. Taking the distance moved by each wall different and Ben having an area of 1*1 meters and height h (while standing). The distance walls move al
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