You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
aoc2020/day07/solve1.go

17 lines
211 B

package day07
import (
"log"
)
func Solve1() {
counter := 0
for _, row := range rows {
if canHoldType(row.Type, "shiny gold") {
counter++
}
}
log.Printf("2020-12-07.01: Answer: %d\n", counter)
}