Result

AC

Duration

506ms

Code [DL]

<?php [$a,$b,$c,$d,$e,$f,$g,$h,$i,$j,$k,$l]=explode(" ",readline()." ".readline()." ".readline()." ".readline());$g-=$a;$h-=$b;$i-=$c;$j-=$a;$k-=$b;$l-=$c;echo(($e-$b)*($i*$j-$g*$l)+($f-$c)*($g*$k-$h*$j)+($d-$a)*($h*$l-$i*$k))/6;

stdin

01 30 77
41 64 29
75 99 57
31 07 33

stdout

21920

stderr

strace