← All problemsSign in

Chef and Sweets

# Chef and Sweets ## Problem: Chef loves Sweets so he went to a sweet shop to buy Sweets. The shopkeeper gave him an offer that he will be given a box of M x N Squares and can fill the box with an unlimited number of Sweets of 2 x 1 Squares. He can rotate the Sweets. He can place as many as possible to meet the following conditions: 1) Each Sweet completely covers two Squares. 2) No two Sweet

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