Result

WA

Duration

472ms

Code [DL]

a=(`cat`)
for((;z++<9));{
$[a[t=z]-=a[9+z%3],s+=z/6*a[z]*(a[p=++t%3+3]*a[q=++t%3]-a[q+3]*a[p-3])/6]
}
echo $s

stdin

18 94 06
84 37 33
78 21 91
79 07 59

stdout

stderr

/volume/CODE: line 2: syntax error: arithmetic expression required
/volume/CODE: line 2: syntax error: `((;z++<9))'

strace