diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-12-20 19:31:13 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-12-20 19:31:13 +0100 |
commit | f6ecf88a2d9da1f140abedc52a0b9b46108a6563 (patch) | |
tree | fa336b0f152d821c3e58249b891aee2fc57e88ea /day19.k | |
parent | 868e907bdec033e993e02a6208d6ec6c96402e4f (diff) | |
download | adventofcode2017-f6ecf88a2d9da1f140abedc52a0b9b46108a6563.tar.gz adventofcode2017-f6ecf88a2d9da1f140abedc52a0b9b46108a6563.tar.xz adventofcode2017-f6ecf88a2d9da1f140abedc52a0b9b46108a6563.zip |
day19
Diffstat (limited to 'day19.k')
-rw-r--r-- | day19.k | 6 |
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 +\\ |