HIGFBEJDP6DS4XLQKLYPZCWTMVNIR4NEHEB6OKQO4A2SCKNKJTGAC
GPJ3G6KRNB4WFU7YSG2744TKZP3FP4F4OIP7HF6HX2JXANMRKOCAC
3Z2JGC4OE7C3N2ZON2F7AO4FLVARI3J2BV4CNAKXD7B7QE6CYP4AC
// log.Printf("%d bags could be tucked in a %q", solveSecond(data), myBag)
log.Printf("%d bags could be tucked in a %q", solveSecond(data, myBag), myBag)
func solveSecond(data Container, root string) int { var sum int for _, c := range data[root] { sum += c.piece + c.piece*solveSecond(data, c.kind) } return sum}
func solveSecond(data Container, root string) int {
var sum int
for _, c := range data[root] {
sum += c.piece + c.piece*solveSecond(data, c.kind)
}
return sum