AoC 2019 D1: The Tyranny of the Rocket Equation
| Problem statement | Source code | Tags: Brute force
Part 1
Not much to say about this. Division rounds down by default in C++.
Part 2
I bet there's a way to mathematically calculate the limit, but this at most takes iterations per module, so it's efficient enough.