Day 15
This commit is contained in:
19
day15/ex1/main.go
Normal file
19
day15/ex1/main.go
Normal 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))
|
||||
}
|
||||
Reference in New Issue
Block a user