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.
 
 
 

18 lines
230 B

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