🎅 2025 Day 12 Complete! 🎄
This commit is contained in:
@@ -24,12 +24,13 @@ func part1(inp []string) {
|
|||||||
for j := range r[i].req {
|
for j := range r[i].req {
|
||||||
size += r[i].req[j] * p[j].area
|
size += r[i].req[j] * p[j].area
|
||||||
}
|
}
|
||||||
|
// Try just fitting them all into the are we have...
|
||||||
if area > size {
|
if area > size {
|
||||||
acc++
|
acc++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Unexpectedly, that worked.
|
||||||
fmt.Println("Part 1")
|
fmt.Println("Part 1")
|
||||||
fmt.Println(p)
|
|
||||||
fmt.Println(acc)
|
fmt.Println(acc)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user