aoc::year2021::day14

Function steps

Source
fn steps(input: &Input, rounds: usize) -> u64
Expand description

Simulate an arbitrary number of steps.

A rule AC -> ABC implies that for each pair AC we create an equal number of pairs AB and BC, then increment the amount of element B.