Files
advent-of-code-2022/day20/ex2/main.go
2022-12-20 15:17:11 +01:00

19 lines
286 B
Go

package main
import (
"aoc2022/day20/common"
"bufio"
"fmt"
"os"
)
func main() {
arrangement := common.Parse(*bufio.NewScanner(os.Stdin))
arrangement.ApplyDecryptionKey(811589153)
arrangement.Mix(10)
x, y, z := arrangement.GetCoordinates()
fmt.Println(x + y + z)
}