This commit is contained in:
2022-12-15 14:46:26 +01:00
parent 53da8720bd
commit 108980344b
3 changed files with 281 additions and 0 deletions

19
day15/ex1/main.go Normal file
View File

@@ -0,0 +1,19 @@
package main
import (
"aoc2022/day15/common"
"bufio"
"fmt"
"os"
)
func main() {
sensors := common.Parse(*bufio.NewScanner(os.Stdin))
tileMap := common.NewMap()
for _, sensor := range sensors {
tileMap.SetSensor(sensor)
}
fmt.Println(tileMap.GetCoverageY(2000000))
}