Day 23
This commit is contained in:
19
day23/ex2/main.go
Normal file
19
day23/ex2/main.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"aoc2022/day23/common"
|
||||
"bufio"
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
tileMap := common.Parse(*bufio.NewScanner(os.Stdin))
|
||||
|
||||
i := 1
|
||||
for !tileMap.Round() {
|
||||
i++
|
||||
}
|
||||
|
||||
fmt.Println(i)
|
||||
}
|
||||
Reference in New Issue
Block a user