about summary refs log tree commit diff
path: root/day01.ijs
diff options
context:
space:
mode:
Diffstat (limited to 'day01.ijs')
-rw-r--r--day01.ijs12
1 files changed, 12 insertions, 0 deletions
diff --git a/day01.ijs b/day01.ijs
new file mode 100644
index 0000000..6b0dfce
--- /dev/null
+++ b/day01.ijs
@@ -0,0 +1,12 @@
+d=: }."1 ;._1', ',(1!:1<'day01')
+
+p=: [: +/ [: |"1 [: +. [
+
+t=: */\0j1*<:+:'R'= {."1 d
+l=: 0". }."1 d
+echo p +/l*t
+
+fd=: [ {~ 0 i.~ [: ~: [
+echo p fd +/\t{~I.l
+
+exit 0