Result

WA

Duration

835ms

Code [DL]

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

stdin

97 12 59
01 49 97
29 21 29
32 04 61

stdout

stderr

Error in /volume/CODE:1: undefined local variable or method 'q' (did you mean 'p'?)

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
                                                                             ^

strace