about summary refs log tree commit diff
path: root/day03.ijs
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-12-03 22:01:55 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2016-12-03 22:01:55 +0100
commit273503ded9bc284881c986442da8f1c29f897528 (patch)
treed596dd00cb3e984f448761575ffd4f80546b97e6 /day03.ijs
parent0d7e832dd83de4b65c13547d939ff54c275ed0b7 (diff)
downloadadventofcode2016-273503ded9bc284881c986442da8f1c29f897528.tar.gz
adventofcode2016-273503ded9bc284881c986442da8f1c29f897528.tar.xz
adventofcode2016-273503ded9bc284881c986442da8f1c29f897528.zip
day03: tweaks
Diffstat (limited to 'day03.ijs')
-rw-r--r--day03.ijs7
1 files changed, 7 insertions, 0 deletions
diff --git a/day03.ijs b/day03.ijs
new file mode 100644
index 0000000..40a5473
--- /dev/null
+++ b/day03.ijs
@@ -0,0 +1,7 @@
+load 'files'
+
+c =: 13 : '(>./x)<(+/x)-(>./x)'
+echo +/c"1".freadr'day03'
+echo +/c"1,/((3%~#r),3)$"1|:r=:".freadr'day03'
+
+exit 0