15 lines
247 B
Go
15 lines
247 B
Go
|
package d4
|
||
|
|
||
|
import (
|
||
|
"strings"
|
||
|
)
|
||
|
|
||
|
func P1(input string) int {
|
||
|
lines := strings.Split(input, "\n\n")
|
||
|
takes := strings.Split(lines[0], ",")
|
||
|
boards := createBoards(lines[1:])
|
||
|
bingo, take := findBingo(boards, takes)
|
||
|
|
||
|
return score(bingo, take)
|
||
|
}
|