Egyptian Pyramid
CodeChefOpen on judge ↗
It’s the year of 2615 BC in Egypt. You are the ruler of the entire dynasty. Just as your forefathers, you are keen on building a pyramid of your own. The advisory committee of yours found a place but informed you that the place was a bit rough as it was on a mountain range. You told them you just want the pyramid whether it was on plain ground or on a mountain. The mountain land can be thought of
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