about summary refs log tree commit diff
path: root/day03.ijs
diff options
context:
space:
mode:
Diffstat (limited to 'day03.ijs')
-rw-r--r--day03.ijs5
1 files changed, 5 insertions, 0 deletions
diff --git a/day03.ijs b/day03.ijs
new file mode 100644
index 0000000..b1c51f4
--- /dev/null
+++ b/day03.ijs
@@ -0,0 +1,5 @@
+d =: (3000&$;._2) 1!:1 < 'day03'
+slop =: 3 : '+/''#''= d{~ y <@:*"_ 0 i.>.(#d)%{.y'
+
+slop 1 3   NB. 270
+*/ slop&> (1 1; 1 3; 1 5; 1 7; 2 1)  NB. 2122848000