Result

WA

Duration

489ms

Code [DL]

print(system2("bash -c a=(`cat`)
for z in {0..8};{
$[a[z]-=a[9+z%3],s+=z/6*a[z]*(a[p=3+(z+1)%3]*a[q=(z+2)%3]-a[q+3]*a[p-3])/6]
}
echo $s"))

stdin

45 39 53
18 48 50
88 77 10
06 45 18

stdout

stderr

sh: 1: Syntax error: "(" unexpected

strace