Skip to content

BobaFatale/adventOfCode2019-Day1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 

Repository files navigation

adventOfCode2019-Day1

Part 1

Fuel required to launch a given module is based on its mass. Specifically, to find the fuel required for a module, take its mass, divide by three, round down, and subtract 2. What is the sum of the fuel requirements for all of the modules on your spacecraft?

Part 2

for each module mass, calculate its fuel and add it to the total. Then, treat the fuel amount you just calculated as the input mass and repeat the process, continuing until a fuel requirement is zero or negative. What is the sum of the fuel requirements for all of the modules on your spacecraft when also taking into account the mass of the added fuel? (Calculate the fuel requirements for each module separately, then add them all up at the end.)

About

adventOfCode2019-Day1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published