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.
 
 
 

20 lines
283 B

package day01
import "log"
func Solve2() {
for _, row1 := range rows {
for _, row2 := range rows {
for _, row3 := range rows {
if row1+row2+row3 == 2020 {
log.Printf(
"2020-12-01.02: Answer: %d\n",
row1*row2*row3,
)
return
}
}
}
}
}