Result

AC

Duration

583ms

Code [DL]

"\\#{require'matrix';a,*b=$<.map \&:split;p Matrix[*b.map{|x|x.zip(a).map{|e|eval e*?-}}].det/6}"

stdin

48 01 48
26 99 68
81 74 03
04 30 76

stdout

18865

stderr

strace