summaryrefslogtreecommitdiff
path: root/problem719.ijs
blob: 598b457db8e0ecccb772f67b3470542baa49603b (plain) (blame)
1
2
3
4
ns =: [+[:(".,[:;([:}:".\)ns&.>[:}.<\.)]
T =: {{<:+/(#~(%:e.0 ns":)"0)*:>:i.y}}

NB. To calculate the result, run 'T 1e6'. It takes a while (+1h)