Pyramid
CodeChefOpen on judge ↗
Bob is very fond of pyramids. One day he bought a pyramid toy box. The box has $n$ magnetic sockets (nodes) and $m$ magnetic sticks . Bob can make the pyramid as shown in the figure below. Figure below shows how pyramid is made- .png?raw=true) Bob then wonders what could be the tallest pyramid possible he can make w
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