2023 day 4 but 3x faster
This commit is contained in:
parent
a9fc4c9e60
commit
8cbfa778c2
9 changed files with 3168 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue