Result

WA

Duration

1318ms

Code [DL]

$a =(Read-Host).Split()
$b =(Read-Host).Split()
$c =(Read-Host).Split()
$d =(Read-Host).Split()
echo($a[0])
echo($a)
foreach($i in 0..3){
echo($i)
$b[$i]-=$a[$i]
$c[$i]-=$a[$i]
$d[$i]-=$a[$i]
}
echo(($b[0]*$c[1]*$d[2]+$b[1]*$c[2]*$d[0]+$b[2]*$c[0]*$d[1]-$b[1]*$c[0]*$d[2]-$b[0]*$c[2]*$d[1]-$b[2]*$c[1]*$d[0])/6)

stdin

52 79 82
23 61 05
92 99 66
43 45 71

stdout

52 79 82
23 61 05
92 99 66
43 45 71
52
52
79
82
0
1
2
3

stderr

Index was outside the bounds of the array.
At line:9 char:1
+ $b[$i]-=$a[$i]
+ ~~~~~~~~~~~~~~
+ CategoryInfo          : OperationStopped: (:) [], IndexOutOfRangeException
+ FullyQualifiedErrorId : System.IndexOutOfRangeException
 
Index was outside the bounds of the array.
At line:10 char:1
+ $c[$i]-=$a[$i]
+ ~~~~~~~~~~~~~~
+ CategoryInfo          : OperationStopped: (:) [], IndexOutOfRangeException
+ FullyQualifiedErrorId : System.IndexOutOfRangeException
 
Index was outside the bounds of the array.
At line:11 char:1
+ $d[$i]-=$a[$i]
+ ~~~~~~~~~~~~~~
+ CategoryInfo          : OperationStopped: (:) [], IndexOutOfRangeException
+ FullyQualifiedErrorId : System.IndexOutOfRangeException
 
Specified argument was out of the range of valid values.
Parameter name: times
At line:13 char:1
+ echo(($b[0]*$c[1]*$d[2]+$b[1]*$c[2]*$d[0]+$b[2]*$c[0]*$d[1]-$b[1]*$c[ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : OperationStopped: (:) [], ArgumentOutOfRangeException
+ FullyQualifiedErrorId : System.ArgumentOutOfRangeException
 

strace