← All problemsSign in

Spreading the Virus

Bioweapons are a curse. On a X-Y plane, There are $N$ (numbered $1$ through $N$) people whose $X$ and $Y$ co-ordinate is given.A Virus source is placed on the origin with spreading index of $P$. The virus spreads in all direction equally and at every co-ordinate the virus population is defined as below Population(X,Y) =$⌊P/K⌋$ Where K = |X| + |Y|. A Person dies if the population of virus at

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start