Arnhav's Cake Problem I
CodeChefOpen on judge ↗
Arnhav has opened a bakery which has become very popular. Many people have placed orders for cakes and he has a hard time deciding his schedule. Arnhav lists $k$ scheduled orders for the next $N$ days. Each order has its own deadline and a value. Each order can be completed within a day irrespective of how many orders he does that day.He does not want to over work, so he places a bound, $o$$i$, t
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