From: Ben Harris Date: Tue, 28 May 2024 08:17:30 +0000 (+0100) Subject: 19a: much faster X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=21e605133a2080db6c25650517df7a86015dfda7;p=aoc-2022.git 19a: much faster We now don't build a robot if our production rate of it resource is enough to build a new robot of the most expensive kind every minute. --- diff --git a/19/19a.bqn b/19/19a.bqn index 04653f6..d7f05cb 100644 --- a/19/19a.bqn +++ b/19/19a.bqn @@ -28,7 +28,7 @@ EvalBlueprint←{𝕊 robot_costs: needed←(𝕩⊏robot_costs)-stock needed_time←1+0⌈⌈´⌈NtZ needed÷robots # Build a robot if there's time and we might need it. - (needed_time≤time)∧(𝕩⊑stock