summaryrefslogtreecommitdiff
path: root/21.c
diff options
context:
space:
mode:
authorAdam Spragg <adam@spra.gg>2022-12-31 15:37:01 +0000
committerAdam Spragg <adam@spra.gg>2022-12-31 15:37:01 +0000
commitd277dca9e238b938906e1ea942b1d4d2dd0910ec (patch)
treec37ce4f57722c3eabd19e0c45d5a9584adbfdc62 /21.c
parentb043397f2718dec1879e4b438518378ad70dbace (diff)
Puzzle 19: Don't build ore/clay robots when short on time
Don't try building ore robots if there are fewer than 10 rounds remaining, or clays robots if there are fewer than 5. It's probably too late for those robots to make a difference? Maybe? (Why 5 and 10 rounds? Just a guess. And it seems to still get the right result) Drops time by 90% on 22-round test data (4.8s -> 0.4s)
Diffstat (limited to '21.c')
0 files changed, 0 insertions, 0 deletions