← All problemsSign in

Packing Books

CodeChefRating 775Open on judge ↗

*Chef is moving to a new house!* *Unfortunately, this means he now has to pack up his things so that they can be moved too. Currently, Chef is packing up his (rather impressive) book collection into cardboard boxes.* Chef has $X$ shelves of books, each of which contains exactly $Y$ books. Each cardboard box can hold at most $Z$ books. In order to not mess up the organization of the books, Chef w

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start