Find Least immune
CodeChefOpen on judge ↗
Amid second wave of Covid-19, $N$ people are trying to get vaccinated. The clinic can vaccinate $1$ person per minute and at most $M$ people can wait in the clinic maintaining social distancing. As everyone is very serious about maintaining social distancing rules, only $M$ people go in the clinic at a time. After first person gets vaccinated, he moves out and $M+1th$ person goes in, after secon
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