about summary refs log tree commit diff
path: root/day19.k
blob: db9b036366f9d79d5a86ccc1c03bf2fd79e75da9 (plain) (blame)
1
2
3
4
5
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
\\