Problem 2739 · Easy

Total Distance Traveled

Burn fuel in chunks of five liters, topping up the main tank from the auxiliary tank after each chunk.

Open the interactive visualisation