Problem 749 · Hard

Contain Virus

Each day wall off the region that threatens the most cells, then let the others spread.

Open the interactive visualisation