C - This Town Needs A Better Class Of Broker
CodeChefOpen on judge ↗
Tanmay and Madhav are real estate brokers in ancient Knossos but they have assigned their job to you. You have m unsold houses, and each house j has an area, xj, and a minimum price, yj. You also have n clients, and each client i wants a house with an area greater than ai and a price less than or equal to pi. Each client can buy at most one house, and each house can have at most one owner. What i
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