Result

WA

Duration

534ms

Code [DL]

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[2-t]*a[s-3])}.sum/6

stdin

83 88 16
60 75 63
05 43 71
48 06 62

stdout

stderr

Syntax error in /volume/CODE:1: expecting token ']', not '='

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[2-t]*a[s-3])}.sum/6
                                                                               ^

strace