Chef and Vaccine
CodeChefOpen on judge ↗
Chef is given a responsibility of supplying Vaccine to a city for next $N$ days. Each day , city wants a particular amount of vaccines to cope up with pandemic rate.Let the number of vaccine required on day $i$ by $A_i$.The problem is that on each day if chef cannot supply vaccine to the city then depending on severity he has to pay fine for each vaccine which couldnot be supplied. Array $A$ are 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