aboutsummaryrefslogtreecommitdiff
path: root/day10.k
diff options
context:
space:
mode:
Diffstat (limited to 'day10.k')
-rw-r--r--day10.k7
1 files changed, 7 insertions, 0 deletions
diff --git a/day10.k b/day10.k
new file mode 100644
index 0000000..7ff2995
--- /dev/null
+++ b/day10.k
@@ -0,0 +1,7 @@
+d:{.:'(x 10+!6; x 18+!6; x 36+!2; x 40+!2)}'1:`day10
+n:*<{r:d[;0]+x*d[;2];(|/r)-(&/r)}'!20000
+(30 80#" "){.[x;y-180 100;:;"#"]}/d[;1 0]+n*d[;3 2] / BXJXJAEX
+n / 10605
+
+
+/ " #"@+(in[;d[;0 1]+n*d[;2 3]])''80 30#+100 180+!80 30 / BXJXJAEX