Chef and his Dusty Legos
CodeChefOpen on judge ↗
When Chef returned to his beach house in the summer holidays, he found that the Lego sets he had built during the last holidays were now covered in thick layers of dust and the gaps between his Lego Buildings were completely filled with dust. It takes the Chef a total of $1$ minute to remove the layers of dust from the buildings (combined) for each model. For the dust filled in the gaps, however,
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