about summary refs log tree commit diff
path: root/day04.k
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-12-04 17:15:16 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2016-12-04 17:15:16 +0100
commit4865bd6050f132e3950285112098c9bb9b53e43f (patch)
tree16966bcd80225648895244d029dc478afdc9a347 /day04.k
parent53e47a52d853a357378a36624f946f16baa61142 (diff)
downloadadventofcode2016-4865bd6050f132e3950285112098c9bb9b53e43f.tar.gz
adventofcode2016-4865bd6050f132e3950285112098c9bb9b53e43f.tar.xz
adventofcode2016-4865bd6050f132e3950285112098c9bb9b53e43f.zip
day04
Diffstat (limited to 'day04.k')
-rw-r--r--day04.k7
1 files changed, 7 insertions, 0 deletions
diff --git a/day04.k b/day04.k
new file mode 100644
index 0000000..9c16683
--- /dev/null
+++ b/day04.k
@@ -0,0 +1,7 @@
+n:{.:x@&~(x<"0")|x>"9"}
+
++/n'm:{(1_-6#-1_x)~5#!=v@>{(+/x=*x),-*x}'v,\:v:-7_x^"-01234567890"}#0:"day04"
+/ 361724
+
+n@*{"north"~5#`c$"a"+26!(n@x)+x-"a"}#m
+/ 482