Output tweaks, fix day numbering

This commit is contained in:
2022-06-06 15:30:58 -05:00
parent 131fb0f03a
commit 85da090c2b
2 changed files with 20 additions and 10 deletions

View File

@ -15,6 +15,10 @@ func (d *Day01) Parse() {
d.nums = utilities.GetIntLines("01p")
}
func (d Day01) Num() int {
return 1
}
func (d *Day01) calcFuel(mass int64) int64 {
return int64(math.Floor(float64(mass)/3)) - 2
}