2023 day 4 but 3x faster

This commit is contained in:
Tristan 2023-12-20 19:31:01 +00:00
parent a9fc4c9e60
commit 8cbfa778c2
9 changed files with 3168 additions and 5 deletions

View file

@ -19,7 +19,7 @@ func main() {
text = strings.Trim(text, "\n")
points := score(text);
fmt.Printf("%v: %v\n", text, points);
// fmt.Printf("%v: %v\n", text, points);
newMultipliers := []int{};
for i := range multipliers {
@ -36,7 +36,7 @@ func main() {
}
total += multiplier;
fmt.Printf("+%v = %v\n", multiplier, total);
fmt.Printf("%v | +%v = %v\n", points, multiplier, total);
}
fmt.Printf("total cards: %v", total);