day7: fix file extension

master
Clyne 3 years ago
parent a1af4e9dec
commit 0b3e007095

@ -1,5 +1,5 @@
load("descriptive")$ load("descriptive")$
batchload("./in.mx")$ /* Should define `input` list of numbers. */ load("in.mac")$ /* Should define `input` list of numbers. */
calcfuel(pos, distmod) := calcfuel(pos, distmod) :=
lreduce("+", map(lambda([n], distmod(abs(pos - n))), input))$ lreduce("+", map(lambda([n], distmod(abs(pos - n))), input))$
Loading…
Cancel
Save