about summary refs log tree commit diff
path: root/day20.k
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-12-21 23:50:55 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-12-21 23:50:55 +0100
commitdcbe8e18e579996e33e4200e4c58eadb2fc17815 (patch)
tree07649fc4efc7a0db01c25094216177af4dd2986c /day20.k
parentf6ecf88a2d9da1f140abedc52a0b9b46108a6563 (diff)
downloadadventofcode2017-dcbe8e18e579996e33e4200e4c58eadb2fc17815.tar.gz
adventofcode2017-dcbe8e18e579996e33e4200e4c58eadb2fc17815.tar.xz
adventofcode2017-dcbe8e18e579996e33e4200e4c58eadb2fc17815.zip
day20
Diffstat (limited to 'day20.k')
-rw-r--r--day20.k4
1 files changed, 4 insertions, 0 deletions
diff --git a/day20.k b/day20.k
new file mode 100644
index 0000000..b9c48a1
--- /dev/null
+++ b/day20.k
@@ -0,0 +1,4 @@
+d:{.:{x in "0123456789-,"}#x}'0:`day20;d:{d[;x]}'|3 3#!9
+*<{+/x|-x}'*|1000{+\x}/d		/ 308
+#+1000{+{x@,/{1=#x}#.=x[;2]}@++\x}/d	/ 504
+\\