Delivery
CodeChefOpen on judge ↗
Pratik works in a food delivery company. There are $N$ locations in the city from where Pratik has to pick up or deliver the food. In one day, Pratik has to deliver food from one restaurant to many different locations at different time. Pratik can collect food from the pickup point only at the specified time. Now Pratik gets paid according to the distance he travels. The more he travels, the more
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