Result

WA

Duration

1290ms

Code [DL]

$s=$Input.Split("\n")
echo($s)
$a = ($s.Split(" "))[0]
$b = ($s.Split(" "))[1]
$c = $s.Split(" ")[2]
$d = $s.Split(" ")[3]
echo($a)
$x=@()
$y=@()
$z=@()
foreach($i in 0..2){
$x+=$b[$i]-$a[$i]
$y+=$c[$i]-$a[$i]
$z+=$d[$i]-$a[$i]
}
echo(($x[0]*$y[1]*$z[2]+$x[1]*$y[2]*$z[0]+$x[2]*$y[0]*$z[1]-$x[1]*$y[0]*$z[2]-$x[2]*$y[1]*$z[0]-$x[0]*$y[2]*$z[1])/6)

stdin

72 97 27
97 74 85
83 76 92
05 22 35

stdout

72 97 27
97 74 85
83 76 92
05 22 35
72
0

stderr

strace