← All problemsSign in

Cylinder

CodeChefRating 2309Open on judge ↗

Chef wants to make a steel container. The container should be of cylindrical form and should have as large volume as possible. He has a rectangular steel sheet of the size W × H for this. His plan is the following: - At first he cuts the sheet into two rectangular sheets by horizontal or vertical cut. - Then he takes one of the obtained sheets and cuts out two equal non-overlapping circles from i

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