Day 20
This commit is contained in:
18
day20/ex2/main.go
Normal file
18
day20/ex2/main.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user