diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-12-24 15:47:36 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-12-24 15:47:36 +0100 |
commit | c9ee6ec46d566125469f4a818e745a570c139803 (patch) | |
tree | 90cb909179fe2046820a34040e032926cb024303 /day22.k | |
parent | 86d8f5905f170c42093d5dc7f3f711d9da45a7a8 (diff) | |
download | adventofcode2016-c9ee6ec46d566125469f4a818e745a570c139803.tar.gz adventofcode2016-c9ee6ec46d566125469f4a818e745a570c139803.tar.xz adventofcode2016-c9ee6ec46d566125469f4a818e745a570c139803.zip |
day22
Diffstat (limited to 'day22.k')
-rw-r--r-- | day22.k | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/day22.k b/day22.k new file mode 100644 index 0000000..a67c48d --- /dev/null +++ b/day22.k @@ -0,0 +1,7 @@ +d:{.:@[x;&(x<"0")|x>"9";:;" "]}'2_0:"day22" ++/{(~x[3]>x[10])&(~x[0 1]~x[6 7])&0<x[3]}',/d,/:\:d / 985 + +ms:&/d[;2] +mx:|/{(*x)*0=x[1]}'d +`0:"\n"/+(32 32#" "){.[x;2#y;$[(2#y)~mx,0;"G";y[3]>ms;"#";~y[3];"_";"."]]}/d; +/ 179 manually |