Bob the Builder
CodeChefOpen on judge ↗
Bob The Builder is upto a new project of constructing a new lighthouse near the sea. But Wendy who used to keep track of how much raw material is required to complete the task, is not available right now. Somehow, Bob managed to find out the quantity of each material except the number of bricks required. He wants to make a row of bricks that is 'goal' inches long. He has a number of small bricks
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