Result

AC

Duration

520ms

Code [DL]

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

stdin

41 10 76
72 56 54
18 50 05
49 78 90

stdout

32860

stderr

strace