20 lines
256 B
Go
20 lines
256 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"internal/tree"
|
|
"internal/util"
|
|
)
|
|
|
|
func main() {
|
|
data := util.ReadInput()
|
|
|
|
// Build a tree of dependencies.
|
|
root := tree.BuildDependencyTree(data)
|
|
|
|
// Build
|
|
time := tree.SimulateConstruction(root)
|
|
fmt.Println(time)
|
|
}
|