about summary refs log tree commit diff
path: root/day24.k
diff options
context:
space:
mode:
Diffstat (limited to 'day24.k')
-rw-r--r--day24.k7
1 files changed, 7 insertions, 0 deletions
diff --git a/day24.k b/day24.k
new file mode 100644
index 0000000..0f82299
--- /dev/null
+++ b/day24.k
@@ -0,0 +1,7 @@
+d:.:''"/"\'0:`day24
+
+s:,/(,/{v::x[0];r::x[1];{(x@v=*x;r,,x)}'in[*x;]#d^x[1]}')\,(0;,!0)
+|/{+/,/x[1]}'s
+l: |/#:'s[;1]
+|/{+/,/x[1]}'{l=#x[1]}#s
+\\