Result

AC

Duration

605ms

Code [DL]

require'matrix';p -Matrix[*$<.map{|l|l.split.map(&:toi)<<1}].det/6

stdin

98 91 51
01 13 40
38 65 01
66 43 71

stdout

7052

stderr