Vaccination Drive in Cities
CodeChefOpen on judge ↗
Considering the rise in COVID19 cases, government has decides to vaccinate more and more citizens at the earliest. For the same purpose, the officials decided to setup $V$ vaccination centres across $N$ cities. The population of each city is represented in array of size $N$ where $i$th city have $A[i]$ population. Each city must have atleast one centre so that people can go to centre in their ci
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