by@taiyoslime
WA
847ms
a=`dd`.split.map &.to_i;p (0..8).map{|z|z/6*(a[z]-=a[9+z%3])*(a[s=3+-~z%3]*a[t=~-z%3]-a[t+3]*a[s-3])}.sum/6
61 06 40 39 71 58 84 44 45 31 84 26
Error in /volume/CODE:1: [1mundefined local variable or method 't'[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[s=3+-~z%3]*a[t=~-z%3]-a[t+3]*a[s-3])}.sum/6 [32;1m^[0m