summaryrefslogtreecommitdiff
path: root/problem22.ijs
blob: 4d7dbbfb2e83e6a3fcd646f6e5473dd21dc92591 (plain) (blame)
1
2
3
4
5
6
7
sep =. '","'
trim =. }:&}.
names =. ([:/:~sep&splitstring&trim&fread) 'p022_names.txt'
val =. [: +/ _64 + a.&i.
ix =. [:>:[:I.E.&names&<
nr =. val*ix
problem22 =: +/;nr each names