Result

WA

Duration

1297ms

Code [DL]

$s=$Input.Split("\n")
echo($s)
$a = $s[0].Split(" ")
$b = $s[1].Split(" ")
$c = $s[2].Split(" ")
$d = $s[3].Split(" ")
$e = $s[2].Split(" ")
$f = $s[3].Split(" ")

echo($e)
[email protected]()
[email protected]()
[email protected]()
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

12 95 28
42 40 08
91 07 49
70 17 60

stdout

12 95 28
42 40 08
91 07 49
70 17 60
91
07
49
9645

stderr

strace