Result

AC

Duration

569ms

Code [DL]

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

stdin

47 02 32
32 42 72
71 10 86
53 25 20

stdout

10785

stderr

strace