about summary refs log tree commit diff
path: root/day24.k
diff options
context:
space:
mode:
Diffstat (limited to 'day24.k')
-rw-r--r--day24.k8
1 files changed, 8 insertions, 0 deletions
diff --git a/day24.k b/day24.k
new file mode 100644
index 0000000..a40e3c6
--- /dev/null
+++ b/day24.k
@@ -0,0 +1,8 @@
+d:0:"day24"
+n:8
+
+c:{(&(0<#:)'r),*(0<#:)#r:&:'d=x}
+ds:(n;n)#{v::c[*x];-1+|/|/{~x . v}{(~d="#")*(x+x>0)|(+-1_'0,'+x)|(+1_'(+x),'0)|(1_'x,'0)|(0,'-1_'x)}/d=*|x}',/("0"+!n),/:\:("0"+!n)
+
+&/{+/0 ds':x}'cmb n	/ 462
+&/{+/0 ds':x,0}'cmb n	/ 676