20 lines
282 B
Go
20 lines
282 B
Go
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))
|
|
}
|