Result

AC

Duration

541ms

Code [DL]

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

stdin

94 99 74
27 66 38
04 79 03
56 29 01

stdout

27251

stderr

strace