Building Stairsteps
CodeChefOpen on judge ↗
Bob is a famous builder. He can build anything according to the requirements of the client. Now, Chef hires Bob to build stairs for his new house. Chef wants Bob to build him a stairstep of height $N$. To build this stairstep, Chef allows Bob to use exactly $N$ rectangular blocks of any dimensions. **The blocks need not have the same dimensions**. Now, there are many ways for Bob to build the stai
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