by@kurgm
WA
835ms
a=`dd`.split.map &.to_i;p (0..8).map{|z|z/6*(a[z]-=a[9+z%3])*(a[p=3+-~z%3]*a[q=~-z%3]-a[q+3]*a[p-3])}.sum/6
97 12 59 01 49 97 29 21 29 32 04 61
Error in /volume/CODE:1: [1mundefined local variable or method 'q'[33;1m (did you mean 'p'?)[0m[0m a=`dd`.split.map &.to_i;p (0..8).map{|z|z/6*(a[z]-=a[9+z%3])*(a[p=3+-~z%3]*a[q=~-z%3]-a[q+3]*a[p-3])}.sum/6 [32;1m^[0m