about summary refs log tree commit diff
path: root/day01.ijs
blob: 6b0dfcec308d5afcb3657f8c506d9c1cf67e7fbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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