diff options
Diffstat (limited to 'day25.k')
-rw-r--r-- | day25.k | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/day25.k b/day25.k new file mode 100644 index 0000000..5bdcc3a --- /dev/null +++ b/day25.k @@ -0,0 +1,5 @@ +/ d:`a`b`c`d`e`f!((1,1,`b;0,1,`c);(0,-1,`a;0,1,`d);(1,1,`d;1,1,`a);(1,-1,`e;0,-1,`d);(1,1,`f;1,-1,`b);(1,1,`a;1,1,`e)) + +d:`a`b`c`d`e`f!0N 2#+(1 0 0 0 1 1 1 0 1 1 1 1;1 1 -1 1 1 1 -1 -1 1 -1 1 1;`b`c`a`d`d`a`e`d`f`b`a`e) +v:20000#0;12399302{v[*x]::*s:d[*|x]v@*x;(s[1]+*x;s[2])}/10000,`a;+/v +\\ |