← All problemsSign in

Accommodation

There are many people who come to Quark and enjoy their 3 days to the fullest. But people need some accommodation to stay. BITS has $N$ X $M$ unit space for accommodation. People can request for a rectangular space. If some or no part of the space is already booked by someone then the person gets the remaining space of his request else he gets nothing. The request is in the form of 4 integers $r1

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