Attempt at part two, OOM

This commit is contained in:
2025-12-02 09:55:37 +01:00
parent 2277721010
commit 027a7bdde6
3 changed files with 44 additions and 14 deletions

View File

@@ -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)
}