aboutsummaryrefslogtreecommitdiff
path: root/challenge-262/asherbhs/j/ch-2.ijs
blob: 9823b9a118d7eab6b03ec5cb482084c7255d55eb (plain)
1
2
3
4
5
6
CountEqualDivisible=.{{+/,(=/~y)*.((0=x|*)"0 1*.</)~i.#y}}

echo 2 CountEqualDivisible 3 1 2 2 2 1 3
echo 1 CountEqualDivisible 1 2 3

exit ''