Day 17
This commit is contained in:
18
day17/ex1/main.go
Normal file
18
day17/ex1/main.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"aoc2022/day17/common"
|
||||
"bufio"
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
chamber := common.Parse(*bufio.NewScanner(os.Stdin))
|
||||
|
||||
for i := 0; i < 2022; i++ {
|
||||
chamber.DropRock()
|
||||
}
|
||||
|
||||
fmt.Println(chamber.GetHighestPoint())
|
||||
}
|
||||
Reference in New Issue
Block a user