about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-12-17 15:16:39 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2015-12-17 15:16:39 +0100
commit7d84c1af0ce5c4412cd2af0b50a3fe93b8cf627c (patch)
treeb7ddd4a0e62a75d4cd2e2c59fefe6de906e0e797
parent2c1f146376d708959defa553cb8e3b9a0a6ae60e (diff)
downloadadventofcode2015-7d84c1af0ce5c4412cd2af0b50a3fe93b8cf627c.tar.gz
adventofcode2015-7d84c1af0ce5c4412cd2af0b50a3fe93b8cf627c.tar.xz
adventofcode2015-7d84c1af0ce5c4412cd2af0b50a3fe93b8cf627c.zip
day17.k5
-rw-r--r--day17.k57
1 files changed, 7 insertions, 0 deletions
diff --git a/day17.k5 b/day17.k5
new file mode 100644
index 0000000..cbb6603
--- /dev/null
+++ b/day17.k5
@@ -0,0 +1,7 @@
+/ works in oK
+d:{x@<x}@.:'-1_0:"day17"
+g:150
+r:{$[g=t:+/x; ,x; (t<g)&(0<#y); ,/{[v]r[x,*v;1_v]}'(!#y)_\:y; ()]}
+s:r[(); d]
+#s
+#&{x=&/x}@#:'s