about summary refs log tree commit diff
path: root/day24.k5
diff options
context:
space:
mode:
Diffstat (limited to 'day24.k5')
-rw-r--r--day24.k58
1 files changed, 8 insertions, 0 deletions
diff --git a/day24.k5 b/day24.k5
new file mode 100644
index 0000000..0a3ea6f
--- /dev/null
+++ b/day24.k5
@@ -0,0 +1,8 @@
+/ use ok
+
+n:4
+d:{x@>x}@.:'-1_0:"day24"
+g:(+/d)%n
+r:{`0:,$#x; $[6<#x; (); g=t:+/x; ,x; (t<g)&(0<#y); ,/{[v]r[x,*v;1_v]}'(!#y)_\:y; ()]}
+s:r[(); d]
+&/*/'s