Result

AC

Duration

599ms

Code [DL]

require'matrix'
p Matrix[*$<.map{|l|eval"a=1,"+l.split*?,}].det/6

stdin

23 90 12
54 93 05
88 54 22
31 32 04

stdout

8847

stderr

strace