Dexter and His Landing Site
CodeChefOpen on judge ↗
An intergalactic tournament has been scheduled on Earth. So dexter have got an assignment to prepare landing sites for the guest’s spaceships. He have prepared n landing sites and the cost for landing on ith landing ai (1Your task is to calculate the total profit that Dexter will get in this tournament. No two spaceship can land on same site. You can assume that all guest come at the same time an
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