Guess the Profit
CodeChefOpen on judge ↗
Chef has just opened his startup restaurant. He has hired a waiter who presents him with a list of $N$ orders by customer, the deadline $D$ by which the customer wants it and associated profit $P$ if the order is served before the deadline. It is also given that every order takes single unit of time, so the minimum possible deadline for any job is 1. As Chef has taken a huge loan to open his start
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