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

17
day20/ex1/main.go Normal file
View File

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