기출 문제 / 삼성 2018 Second Half Afternoon Problem 1

Virus Experiment

We are conducting an experiment to culture viruses on an n×n grid-patterned medium.

Initially, each cell contains 5 units of nutrients, and the experiment starts with m viruses.

Each cycle of the experiment proceeds according to the following rules: