by@kurgm
WA
521ms
a=`dd`.split.map &.to_i;p (0..8).map{|z|z/6*(a[z]-=a[9+z%3])*(a[3+p=-~z%3]*a[q=~-z%3]-a[q+3]*a[p])}.sum/6
99 91 08 01 84 62 02 52 02 75 45 56
Syntax error in /volume/CODE:1: [1mexpecting token ']', not '='[0m a=`dd`.split.map &.to_i;p (0..8).map{|z|z/6*(a[z]-=a[9+z%3])*(a[3+p=-~z%3]*a[q=~-z%3]-a[q+3]*a[p])}.sum/6 [32;1m^[0m