← All problemsSign in

Problem 2

Harry and Ron are two best friends. They decided to a play a game in which they have to completely fill an area of rectangular shape with size n X m with some square pieces of size a X a. They were facing difficulty to get the answer, you being a common friend of both of them need to find the minimum number of pieces required to cover the whole rectangular space. It is allowed to cover the are

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