Exemple #1
0
 private static int FuelOfFuel(int fuel) => fuel <= 0 ? 0 : fuel + FuelOfFuel(Part1.CalculateFuel(fuel));
Exemple #2
0
 public static int Solve() => Data.Input.Select(i => FuelOfFuel(Part1.CalculateFuel(i))).Sum();