about summary refs log tree commit diff
path: root/day20.k
diff options
context:
space:
mode:
Diffstat (limited to 'day20.k')
-rw-r--r--day20.k4
1 files changed, 4 insertions, 0 deletions
diff --git a/day20.k b/day20.k
new file mode 100644
index 0000000..b9c48a1
--- /dev/null
+++ b/day20.k
@@ -0,0 +1,4 @@
+d:{.:{x in "0123456789-,"}#x}'0:`day20;d:{d[;x]}'|3 3#!9
+*<{+/x|-x}'*|1000{+\x}/d		/ 308
+#+1000{+{x@,/{1=#x}#.=x[;2]}@++\x}/d	/ 504
+\\