This commit is contained in:
2022-12-20 15:17:11 +01:00
parent 0aa38a19f1
commit bf9e5ce9c3
3 changed files with 140 additions and 0 deletions

18
day20/ex2/main.go Normal file
View File

@@ -0,0 +1,18 @@
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)
}