Result

AC

Duration

561ms

Code [DL]

#!ruby -rmatrix
a,*b=$<.map &:split
p Matrix[*b.map{|x|x.zip(a).map{|e,f|e.to_i-f.to_i}}].det/6

stdin

63 74 06
38 04 79
79 02 17
77 76 07

stdout

11435

stderr

strace