Result

AC

Duration

1149ms

Code [DL]

"\\#{require'matrix';p Matrix[*$<.map{|x|[1]+x.split.map(\&:to_i)}].det/6}"

stdin

04 77 18
98 32 25
71 21 67
29 22 70

stdout

10877

stderr

strace