Chef and Box
CodeChefOpen on judge ↗
The chef became obsessed with buying products online and he ended up buying too many products and each product came within a box. Once the chef realizes that he now has too many boxes at his house so he decided to throw out the boxes to make some space into the house. But Chef is very lazy, he doesn't want to go out to throw one box at a time so he decided that he will put the smaller boxes inside
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