Long live the Bacteria
CodeChefOpen on judge ↗
Amogh has a huge collection of bacteria for some research (probably for his database :P). He lays them on an infinite grid of cells, each bacterium in its own cell. Now, these bacterium are special, as they reproduce or die following a unique pattern. He observes that each second, the following transformations occur (all simultaneously): If a bacterium has no neighbor to its north and no neighb
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