This commit is contained in:
2022-12-15 14:56:28 +01:00
parent 108980344b
commit cc58326f8c
20 changed files with 145 additions and 145 deletions

View File

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