mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-27 13:50:32 +01:00
Attempt at part two, OOM
This commit is contained in:
@@ -12,6 +12,18 @@ module "check_range" {
|
||||
max = local.min_max[count.index][1]
|
||||
}
|
||||
|
||||
module "check_range2" {
|
||||
source = "./range2"
|
||||
count = length(local.min_max)
|
||||
|
||||
min = local.min_max[count.index][0]
|
||||
max = local.min_max[count.index][1]
|
||||
}
|
||||
|
||||
output "part1" {
|
||||
value = sum(module.check_range[*].invalid_sum)
|
||||
}
|
||||
|
||||
output "part2" {
|
||||
value = sum(module.check_range2[*].invalid_sum)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user