about summary refs log tree commit diff
path: root/day19.k
diff options
context:
space:
mode:
Diffstat (limited to 'day19.k')
-rw-r--r--day19.k6
1 files changed, 6 insertions, 0 deletions
diff --git a/day19.k b/day19.k
new file mode 100644
index 0000000..db9b036
--- /dev/null
+++ b/day19.k
@@ -0,0 +1,6 @@
+s:" "~(d:0:"day19").
+v:*:'{~s@*x}{(h+*x;h:$["+"~d .*x;$[*|*|x;|0,1 -1@s 1 0+*x;0,1 -1@s 0 1+*x];*|x])}\(0,(*d)?"|";1 0)
+
+{~(x<"A")|x>"Z"}#d ./:v
+-1+#v
+\\