day7: fix file extension
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…
Reference in New Issue